Skip to content

Commit

Permalink
proper packaging and distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
yakninja committed Feb 15, 2018
1 parent 69cf9a9 commit 7de9ac5
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 10 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1
63 changes: 53 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,56 @@
from distutils.core import setup
"""A setuptools based setup module.
See:
https://packaging.python.org/en/latest/distributing.html
https://github.com/pypa/sampleproject
"""

# To use a consistent encoding
from codecs import open
from os import path

# Always prefer setuptools over distutils
from setuptools import setup, find_packages

here = path.abspath(path.dirname(__file__))

# Get the long description from the README file
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()

# Arguments marked as "Required" below must be included for upload to PyPI.
# Fields marked as "Optional" may be commented out.

setup(
name='Numerology',
version='0.1.0',
author='Andrii Kravchuk',
author_email='[email protected]',
packages=['numerology', 'numerology.vedic', 'numerology.tests'],
url='http://pypi.python.org/pypi/Numerology/',
license='LICENSE.txt',
description='Numerology related stuff.',
long_description=open('README.txt').read(),
name='Numerology', # Required
version='0.1.0a1', # Required
description='Numerology related stuff', # Required
long_description=long_description, # Optional
url='https://github.com/yakninja/python-numerology', # Optional
author='Andrii Kravchuk', # Optional
author_email='[email protected]', # Optional

# Classifiers help users find your project by categorizing it.
#
# For a list of valid classifiers, see
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[ # Optional
'Development Status :: 3 - Alpha',
'Intended Audience :: Religion',
'Topic :: Religion',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
],
keywords='numerology sanskrit vedic', # Optional

# You can just specify package directories manually here if your project is
# simple. Or you can use find_packages().
#
# Alternatively, if you just want to distribute a single Python file, use
# the `py_modules` argument instead as follows, which will expect a file
# called `my_module.py` to exist:
#
# py_modules=["my_module"],
#
packages=find_packages(exclude=['contrib', 'docs', 'tests']), # Required
)

0 comments on commit 7de9ac5

Please sign in to comment.