mirror of
https://github.com/unitedstates/congress.git
synced 2026-03-26 08:00:03 -04:00
change directory structure to make python package conventional add setup.py file to specify deps guide users to use the installed `usc-run` command associated changes to other scripts make scripts installable when package is installed add a symlink for congress/run.py to run for backwards compat remove redundant requirements file
46 lines
1.1 KiB
Python
46 lines
1.1 KiB
Python
"""Setup file for using congress as a python package."""
|
|
from os import path
|
|
|
|
import setuptools
|
|
|
|
# Obtain long_description from README.md
|
|
here = path.abspath(path.dirname(__file__))
|
|
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
setuptools.setup(
|
|
name='united-states-congress',
|
|
version='0.0.1',
|
|
author='The unitedstates organization on GitHub',
|
|
long_description=long_description,
|
|
description='Public domain data collectors for the work of Congress, '
|
|
'including legislation, amendments, and votes.',
|
|
license='CC0-1.0',
|
|
packages=setuptools.find_packages(),
|
|
install_requires=[
|
|
'beautifulsoup4',
|
|
'cssselect',
|
|
'iso8601',
|
|
'lxml',
|
|
'mechanize',
|
|
'mock',
|
|
'rtyaml',
|
|
'python-dateutil',
|
|
'pytz',
|
|
'pyyaml',
|
|
'scrapelib',
|
|
'xmltodict',
|
|
],
|
|
entry_points={
|
|
'console_scripts': [
|
|
'usc-run=congress.run:main'
|
|
],
|
|
},
|
|
scripts=[
|
|
'scripts/bills.sh',
|
|
'scripts/statutes.sh',
|
|
'scripts/votes.sh',
|
|
'scripts/voteview.sh'
|
|
],
|
|
)
|