Make it an actual pip installable package

This commit is contained in:
Allard Stijnman
2016-03-23 17:33:58 +01:00
parent 748b86b901
commit 82017dd051
25 changed files with 742 additions and 126 deletions
+10 -15
View File
@@ -5,16 +5,14 @@ https://github.com/pypa/sampleproject
"""
# Always prefer setuptools over distutils
from setuptools import setup
# To use a consistent encoding
from codecs import open
from os import path
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.md'), encoding='utf-8') as f:
long_description = f.read()
# For upload to pypi convert readme to rst.
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except:
long_description = ''
setup(
name='freemail',
@@ -22,7 +20,7 @@ setup(
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.2.0',
version='1.2.15',
description='A database of free and disposable email domains',
long_description=long_description,
@@ -60,11 +58,8 @@ setup(
# You can just specify the packages manually here if your project is
# simple. Or you can use find_packages().
packages=['freemail', ],
data_files=[
('freemail', ['update', ]),
('freemail/data', ['data/free.txt', 'data/disposable.txt', ]),
],
packages=find_packages(),
include_package_data=True,
# List run-time dependencies here. These will be installed by pip when
# your project is installed. For an analysis of "install_requires" vs pip's