From d7cb0a4a6194436374969b2cdab6037a8240e8ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=BCller?= <l.muller@student.tudelft.nl> Date: Wed, 9 Aug 2017 15:05:07 +0200 Subject: [PATCH] Changed hyperlink in the setup.py file and added instructions for submitting to PyPi Former-commit-id: eb8bc9db54c34c8b77b8fe8006fbd557907242e9 --- setup.py | 2 +- submit.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 submit.md diff --git a/setup.py b/setup.py index de491134d..01cb324e5 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ setup(name='kadmos', ], keywords='optimization agile multidisciplinary graph engineering', url='https://bitbucket.org/imcovangent/kadmos', - download_url='https://bitbucket.org/imcovangent/kadmos/dist/'+version+'.tar.gzip', + download_url='https://bitbucket.org/imcovangent/kadmos/raw/master/dist/'+version+'.tar.gzip', author='Imco van Gent', author_email='i.vangent@tudelft.nl', license='Apache Software License', diff --git a/submit.md b/submit.md new file mode 100644 index 000000000..806214b5c --- /dev/null +++ b/submit.md @@ -0,0 +1,18 @@ +Instructions for submitting a new version of KADMOS to PyPi +=========================================================== + +- Adapt the version in the setup.py file (for versions that are published to PyPi it should be just something like '0.6', the next intermediate version which is not published would be '0.7dev'. + +- Adapt the changelog in the [readme.md](readme.md) file. + +- Adapt the [MANIFEST.in](MANIFEST.in) file (this file specifies what should be included in the distribution, by default only .py or .pyc files are included in the distribution). Normally you only need to adapt the included visualization packages here. + +- Run the setup.bat file. This creates a wheel distribution in the [dist](dist) directory which should be installable with pip. Test this out. + +- Remove intermediate distributions from the [dist](dist) directory (for example version '0.6dev'). + +- Submit everything to the master branch of the Bitbucket repository. + +- Run the submit.bat file for submitting everything to PyPi. You might want to register your PyPi credentials in the [.pypirc](https://docs.python.org/2/distutils/packageindex.html#pypirc) file first. + +- Check that the new version is submitted by accessing [https://pypi.python.org/pypi/kadmos](https://pypi.python.org/pypi/kadmos). -- GitLab