Mercurial > jouvence
comparison setup.py @ 11:c6d28a830f68 0.1.0
Add PyPI support.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Wed, 04 Jan 2017 08:51:18 -0800 |
parents | |
children | ee741bbe96a8 |
comparison
equal
deleted
inserted
replaced
10:2cea36073188 | 11:c6d28a830f68 |
---|---|
1 #!/usr/bin/env python | |
2 # -*- coding: utf-8 -*- | |
3 | |
4 import os.path | |
5 from setuptools import setup, find_packages | |
6 | |
7 | |
8 def read(fname): | |
9 with open(os.path.join(os.path.dirname(__file__), fname)) as fp: | |
10 return fp.read() | |
11 | |
12 | |
13 def readlines(fname): | |
14 return [l.strip() for l in read(fname).strip().splitlines()] | |
15 | |
16 | |
17 install_requires = readlines('requirements.txt') | |
18 tests_require = readlines('dev-requirements.txt') | |
19 long_description = read('README.rst') | |
20 | |
21 | |
22 setup( | |
23 name="Fontaine", | |
24 use_scm_version={'write_to': 'fontaine/version.py'}, | |
25 description="A library for parsing and rendering Fountain screenplays.", | |
26 long_description=long_description, | |
27 author="Ludovic Chabant", | |
28 author_email="ludovic@chabant.com", | |
29 license="Apache License 2.0", | |
30 url="https://bolt80.com/fontaine", | |
31 keywords='fountain screenplay screenwriting screenwriter', | |
32 packages=find_packages(), | |
33 include_package_data=True, | |
34 zip_safe=False, | |
35 setup_requires=['setuptools_scm', 'pytest-runner'], | |
36 tests_require=tests_require, | |
37 install_requires=install_requires, | |
38 entry_points={ | |
39 'console_scripts': [ | |
40 'fontaine = fontaine.cli.main' | |
41 ]} | |
42 ) |