dstansby / demcmc

Differential Emission Measure estimation using MCMC methods
https://demcmc.readthedocs.io
BSD 3-Clause "New" or "Revised" License
7 stars 2 forks source link

Release on PyPI #54

Closed dstansby closed 1 year ago

BogdanMFometescu commented 1 year ago

This are the basic steps to release a package to PyPi

1 . Create a setup.py file

2. Build the package files

3. Create account on Pypi

4. Publish it on PyPi using twine

1. The file setup.py should look like this:

from setuptools import setup, find_packages

VERSION = '0.0.1'
DESCRIPTION = 'A conversion package'
LONG_DESCRIPTION = 'A package that makes it easy to convert values between several units of measurement'

setup(
    name="convrsn",
    version=VERSION,
    description=DESCRIPTION,
    long_description=LONG_DESCRIPTION,
    author="<Your Name>",
    author_email="<your email>",
    license='MIT',
    packages=find_packages(),
    install_requires=[],
    keywords='conversion',
    classifiers= [
        "Development Status :: 3 - Alpha",
        "Intended Audience :: Developers",
        'License :: OSI Approved :: MIT License',
        "Programming Language :: Python :: 3",
    ]
)

2 Build the package file

python setup.py sdist bdist_wheel

3 Create account on PyPi

Register

4 Publish the package

pip install twine 
twine upload --repository testpypi dist/*

Full steps are on this link

Hope this helps.