summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-02-17 17:46:42 +0100
committerMartin Basti <mbasti@redhat.com>2017-03-02 14:43:37 +0100
commitacdd1f59782bb836d6c4c255689918368adb8dab (patch)
treeef3613076589b322aa20e42abdf42664c0adaadd
parente2b9ea2fd58b98edbb8d6aec97aadeea7cf11dcb (diff)
downloadfreeipa-acdd1f59782bb836d6c4c255689918368adb8dab.tar.gz
freeipa-acdd1f59782bb836d6c4c255689918368adb8dab.tar.xz
freeipa-acdd1f59782bb836d6c4c255689918368adb8dab.zip
Add placeholders for ipaplatform, ipaserver and ipatests
I also renamed the base directory to pypi and added a new build target pypi_packages. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com>
-rw-r--r--Makefile.am14
-rw-r--r--Makefile.python.am2
-rw-r--r--configure.ac9
-rw-r--r--pypi/Makefile.am (renamed from packaging/Makefile.am)5
-rw-r--r--pypi/freeipa/Makefile.am (renamed from packaging/freeipa/Makefile.am)0
-rw-r--r--pypi/freeipa/README.txt (renamed from packaging/freeipa/README.txt)0
-rw-r--r--pypi/freeipa/setup.cfg (renamed from packaging/freeipa/setup.cfg)0
-rwxr-xr-xpypi/freeipa/setup.py (renamed from packaging/freeipa/setup.py)0
-rw-r--r--pypi/ipa/Makefile.am (renamed from packaging/ipa/Makefile.am)0
-rw-r--r--pypi/ipa/README.txt (renamed from packaging/ipa/README.txt)0
-rw-r--r--pypi/ipa/setup.cfg (renamed from packaging/ipa/setup.cfg)0
-rwxr-xr-xpypi/ipa/setup.py (renamed from packaging/ipa/setup.py)0
-rw-r--r--pypi/ipaplatform/Makefile.am3
-rw-r--r--pypi/ipaplatform/README.txt2
-rw-r--r--pypi/ipaplatform/ipaplatform/__init__.py5
-rw-r--r--pypi/ipaplatform/setup.cfg6
-rwxr-xr-xpypi/ipaplatform/setup.py26
-rw-r--r--pypi/ipaserver/Makefile.am3
-rw-r--r--pypi/ipaserver/README.txt2
-rw-r--r--pypi/ipaserver/ipaserver/__init__.py5
-rw-r--r--pypi/ipaserver/setup.cfg6
-rwxr-xr-xpypi/ipaserver/setup.py26
-rw-r--r--pypi/ipatests/Makefile.am3
-rw-r--r--pypi/ipatests/README.txt2
-rw-r--r--pypi/ipatests/ipatests/__init__.py5
-rw-r--r--pypi/ipatests/setup.cfg6
-rwxr-xr-xpypi/ipatests/setup.py26
27 files changed, 148 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 9595c9dbe..26ba379c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,6 +9,7 @@ if WITH_IPATESTS
endif
IPACLIENT_SUBDIRS = ipaclient ipalib ipapython
+IPA_PLACEHOLDERS = freeipa ipa ipaplatform ipaserver ipatests
SUBDIRS = asn1 util client contrib po pypi \
$(IPACLIENT_SUBDIRS) ipaplatform $(IPATESTS_SUBDIRS) $(SERVER_SUBDIRS)
@@ -204,7 +205,7 @@ jslint-html:
cd $(top_srcdir)/install/html; \
jsl -nologo -nosummary -nofilelisting -conf jsl.conf
-.PHONY: bdist_wheel wheel_bundle
+.PHONY: bdist_wheel wheel_bundle wheel_placeholder pypi_packages
WHEELDISTDIR = $(top_builddir)/dist/wheels
WHEELBUNDLEDIR = $(top_builddir)/dist/bundle
@@ -215,8 +216,6 @@ $(WHEELBUNDLEDIR):
mkdir -p $(WHEELBUNDLEDIR)
bdist_wheel: $(WHEELDISTDIR)
- $(MAKE) $(AM_MAKEFLAGS) -C packaging/ipa bdist_wheel || exit 1;
- $(MAKE) $(AM_MAKEFLAGS) -C packaging/freeipa bdist_wheel || exit 1;
for dir in $(IPACLIENT_SUBDIRS); do \
$(MAKE) $(AM_MAKEFLAGS) -C $${dir} $@ || exit 1; \
done
@@ -224,6 +223,15 @@ bdist_wheel: $(WHEELDISTDIR)
wheel_bundle: $(WHEELBUNDLEDIR) bdist_wheel
$(PYTHON) -m pip wheel --wheel-dir $(WHEELBUNDLEDIR) $(WHEELDISTDIR)/*.whl
+wheel_placeholder: $(WHEELDISTDIR)
+ for dir in $(IPA_PLACEHOLDERS); do \
+ $(MAKE) $(AM_MAKEFLAGS) -C $(top_srcdir)/pypi/$${dir} bdist_wheel || exit 1; \
+ done
+
+pypi_packages: bdist_wheel wheel_placeholder
+ @echo -e "\n\nTo upload packages to PyPI, run:\n"
+ @echo -e " twine upload $(WHEELDISTDIR)/*-$(VERSION)-py2.py3-none-any.whl\n"
+
.PHONY:
strip-po:
$(MAKE) -C po strip-po
diff --git a/Makefile.python.am b/Makefile.python.am
index 9c34fe3d0..e4efc1749 100644
--- a/Makefile.python.am
+++ b/Makefile.python.am
@@ -58,5 +58,5 @@ dist-hook: $(top_builddir)/ipasetup.py
WHEELDISTDIR = $(top_builddir)/dist/wheels
.PHONY: bdist_wheel
bdist_wheel: $(top_builddir)/ipasetup.py
- rm -rf $(WHEELDISTDIR)/$(pkgname)*.whl
+ rm -rf $(WHEELDISTDIR)/$(pkgname)-*.whl
$(PYTHON) "$(srcdir)/setup.py" bdist_wheel --dist-dir=$(WHEELDISTDIR)
diff --git a/configure.ac b/configure.ac
index c52a2ec12..31bfa8aaf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -487,9 +487,12 @@ AC_CONFIG_FILES([
ipaserver/Makefile
ipatests/Makefile
ipatests/man/Makefile
- packaging/Makefile
- packaging/freeipa/Makefile
- packaging/ipa/Makefile
+ pypi/Makefile
+ pypi/freeipa/Makefile
+ pypi/ipa/Makefile
+ pypi/ipaplatform/Makefile
+ pypi/ipaserver/Makefile
+ pypi/ipatests/Makefile
po/Makefile.in
po/Makefile.hack
util/Makefile
diff --git a/packaging/Makefile.am b/pypi/Makefile.am
index 5725ed963..5d8be9c1f 100644
--- a/packaging/Makefile.am
+++ b/pypi/Makefile.am
@@ -6,5 +6,8 @@ NULL =
SUBDIRS = \
freeipa \
- ipa \
+ ipa \
+ ipaplatform \
+ ipaserver \
+ ipatests \
$(NULL)
diff --git a/packaging/freeipa/Makefile.am b/pypi/freeipa/Makefile.am
index 15d86ce0c..15d86ce0c 100644
--- a/packaging/freeipa/Makefile.am
+++ b/pypi/freeipa/Makefile.am
diff --git a/packaging/freeipa/README.txt b/pypi/freeipa/README.txt
index b58448f20..b58448f20 100644
--- a/packaging/freeipa/README.txt
+++ b/pypi/freeipa/README.txt
diff --git a/packaging/freeipa/setup.cfg b/pypi/freeipa/setup.cfg
index 62f65c719..62f65c719 100644
--- a/packaging/freeipa/setup.cfg
+++ b/pypi/freeipa/setup.cfg
diff --git a/packaging/freeipa/setup.py b/pypi/freeipa/setup.py
index 230fffd90..230fffd90 100755
--- a/packaging/freeipa/setup.py
+++ b/pypi/freeipa/setup.py
diff --git a/packaging/ipa/Makefile.am b/pypi/ipa/Makefile.am
index 15d86ce0c..15d86ce0c 100644
--- a/packaging/ipa/Makefile.am
+++ b/pypi/ipa/Makefile.am
diff --git a/packaging/ipa/README.txt b/pypi/ipa/README.txt
index b58448f20..b58448f20 100644
--- a/packaging/ipa/README.txt
+++ b/pypi/ipa/README.txt
diff --git a/packaging/ipa/setup.cfg b/pypi/ipa/setup.cfg
index 62f65c719..62f65c719 100644
--- a/packaging/ipa/setup.cfg
+++ b/pypi/ipa/setup.cfg
diff --git a/packaging/ipa/setup.py b/pypi/ipa/setup.py
index 403389b25..403389b25 100755
--- a/packaging/ipa/setup.py
+++ b/pypi/ipa/setup.py
diff --git a/pypi/ipaplatform/Makefile.am b/pypi/ipaplatform/Makefile.am
new file mode 100644
index 000000000..15d86ce0c
--- /dev/null
+++ b/pypi/ipaplatform/Makefile.am
@@ -0,0 +1,3 @@
+include $(top_srcdir)/Makefile.python.am
+
+pkginstall = false
diff --git a/pypi/ipaplatform/README.txt b/pypi/ipaplatform/README.txt
new file mode 100644
index 000000000..15064b0b0
--- /dev/null
+++ b/pypi/ipaplatform/README.txt
@@ -0,0 +1,2 @@
+This is a dummy package for FreeIPA's ipaplatform.
+
diff --git a/pypi/ipaplatform/ipaplatform/__init__.py b/pypi/ipaplatform/ipaplatform/__init__.py
new file mode 100644
index 000000000..3b12c8c74
--- /dev/null
+++ b/pypi/ipaplatform/ipaplatform/__init__.py
@@ -0,0 +1,5 @@
+#
+# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
+#
+
+raise ImportError("ipaplatform is not yet supported as PyPI package.")
diff --git a/pypi/ipaplatform/setup.cfg b/pypi/ipaplatform/setup.cfg
new file mode 100644
index 000000000..62f65c719
--- /dev/null
+++ b/pypi/ipaplatform/setup.cfg
@@ -0,0 +1,6 @@
+[bdist_wheel]
+universal = 1
+
+[aliases]
+packages = clean --all egg_info bdist_wheel
+release = packages register upload
diff --git a/pypi/ipaplatform/setup.py b/pypi/ipaplatform/setup.py
new file mode 100755
index 000000000..f0fca2c70
--- /dev/null
+++ b/pypi/ipaplatform/setup.py
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
+#
+"""Dummy package for FreeIPA
+
+ipaplatform is not yet available as PyPI package.
+"""
+
+from os.path import abspath, dirname
+import sys
+
+if __name__ == '__main__':
+ # include ../../ for ipasetup.py
+ sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
+ from ipasetup import ipasetup # noqa: E402
+
+ ipasetup(
+ name='ipaplatform',
+ doc = __doc__,
+ packages=[
+ "ipaplatform",
+ ],
+ install_requires=[
+ "ipaclient",
+ ]
+ )
diff --git a/pypi/ipaserver/Makefile.am b/pypi/ipaserver/Makefile.am
new file mode 100644
index 000000000..15d86ce0c
--- /dev/null
+++ b/pypi/ipaserver/Makefile.am
@@ -0,0 +1,3 @@
+include $(top_srcdir)/Makefile.python.am
+
+pkginstall = false
diff --git a/pypi/ipaserver/README.txt b/pypi/ipaserver/README.txt
new file mode 100644
index 000000000..dea6ac44e
--- /dev/null
+++ b/pypi/ipaserver/README.txt
@@ -0,0 +1,2 @@
+This is a dummy package for FreeIPA's ipaserver.
+
diff --git a/pypi/ipaserver/ipaserver/__init__.py b/pypi/ipaserver/ipaserver/__init__.py
new file mode 100644
index 000000000..4cbf200d0
--- /dev/null
+++ b/pypi/ipaserver/ipaserver/__init__.py
@@ -0,0 +1,5 @@
+#
+# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
+#
+
+raise ImportError("ipaserver is not yet supported as PyPI package.")
diff --git a/pypi/ipaserver/setup.cfg b/pypi/ipaserver/setup.cfg
new file mode 100644
index 000000000..62f65c719
--- /dev/null
+++ b/pypi/ipaserver/setup.cfg
@@ -0,0 +1,6 @@
+[bdist_wheel]
+universal = 1
+
+[aliases]
+packages = clean --all egg_info bdist_wheel
+release = packages register upload
diff --git a/pypi/ipaserver/setup.py b/pypi/ipaserver/setup.py
new file mode 100755
index 000000000..73e1e6316
--- /dev/null
+++ b/pypi/ipaserver/setup.py
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
+#
+"""Dummy package for FreeIPA
+
+ipatests is not yet available as PyPI package.
+"""
+
+from os.path import abspath, dirname
+import sys
+
+if __name__ == '__main__':
+ # include ../../ for ipasetup.py
+ sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
+ from ipasetup import ipasetup # noqa: E402
+
+ ipasetup(
+ name='ipaserver',
+ doc = __doc__,
+ packages=[
+ "ipaserver",
+ ],
+ install_requires=[
+ "ipaclient",
+ ]
+ )
diff --git a/pypi/ipatests/Makefile.am b/pypi/ipatests/Makefile.am
new file mode 100644
index 000000000..15d86ce0c
--- /dev/null
+++ b/pypi/ipatests/Makefile.am
@@ -0,0 +1,3 @@
+include $(top_srcdir)/Makefile.python.am
+
+pkginstall = false
diff --git a/pypi/ipatests/README.txt b/pypi/ipatests/README.txt
new file mode 100644
index 000000000..3347eacd5
--- /dev/null
+++ b/pypi/ipatests/README.txt
@@ -0,0 +1,2 @@
+This is a dummy package for FreeIPA's ipatests.
+
diff --git a/pypi/ipatests/ipatests/__init__.py b/pypi/ipatests/ipatests/__init__.py
new file mode 100644
index 000000000..5592c5369
--- /dev/null
+++ b/pypi/ipatests/ipatests/__init__.py
@@ -0,0 +1,5 @@
+#
+# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
+#
+
+raise ImportError("ipatests is not yet supported as PyPI package.")
diff --git a/pypi/ipatests/setup.cfg b/pypi/ipatests/setup.cfg
new file mode 100644
index 000000000..62f65c719
--- /dev/null
+++ b/pypi/ipatests/setup.cfg
@@ -0,0 +1,6 @@
+[bdist_wheel]
+universal = 1
+
+[aliases]
+packages = clean --all egg_info bdist_wheel
+release = packages register upload
diff --git a/pypi/ipatests/setup.py b/pypi/ipatests/setup.py
new file mode 100755
index 000000000..808e510ca
--- /dev/null
+++ b/pypi/ipatests/setup.py
@@ -0,0 +1,26 @@
+#
+# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
+#
+"""Dummy package for FreeIPA
+
+ipatests is not yet available as PyPI package.
+"""
+
+from os.path import abspath, dirname
+import sys
+
+if __name__ == '__main__':
+ # include ../../ for ipasetup.py
+ sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
+ from ipasetup import ipasetup # noqa: E402
+
+ ipasetup(
+ name='ipatests',
+ doc = __doc__,
+ packages=[
+ "ipatests",
+ ],
+ install_requires=[
+ "ipaclient",
+ ]
+ )