diff --git a/.gitignore b/.gitignore index cdbe043..3fdabb2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ .venv/ modules/__pycache__/ runs/ +*.swp +build/ +dist/ +karoo_gp_kstaats.egg-info/ diff --git a/README-pip.md b/README-pip.md new file mode 100644 index 0000000..3e373d9 --- /dev/null +++ b/README-pip.md @@ -0,0 +1,20 @@ +# pip archive creation +HOWTO create and upload an archive to PyPI (pip). + +``` +# Install dependencies +python3 -m pip install --user --upgrade setuptools wheel twine +# Create Archive +python3 setup.py sdist bdist_wheel +# Upload to Test Archive +python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/* +# Check Test Archive +https://test.pypi.org/project/karoo_gp-jebba +# Install Test Archive +python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps karoo_gp-jebba +# Upload to Main Archive +python3 -m twine upload dist/* +# Install Main Archive +python3 -m pip install karoo_gp-jebba +``` + diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..e63b966 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="karoo_gp-jebba", + version="2.3", + author="Kai Staats", + description="evolutionary algorithm, genetic programming suite", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/kstaats/karoo_gp", + packages={''}, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +)