-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update setup.py to allow deployments to PyPI - #27
- Loading branch information
1 parent
f2afea8
commit 982d2e6
Showing
1 changed file
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import sys | ||
import os | ||
from os.path import abspath, dirname, join | ||
from setuptools import setup, find_packages | ||
|
||
HERE = abspath(dirname(__file__)) | ||
os.chdir(HERE) # allow setup.py to be run from any path | ||
|
||
with open(join(HERE, 'README.md')) as readme: | ||
README = readme.read() | ||
|
||
requires = [ | ||
'requests>=2.0', | ||
'python-dateutil', | ||
|
@@ -17,13 +24,33 @@ | |
) | ||
|
||
setup( | ||
name='odata', | ||
name='python-odata', # 'odata' currently clashes with github.com/odatapy/odata which is 404 :-/ | ||
version='0.3', | ||
description='A simple library for read/write access to OData services.', | ||
long_description=README, | ||
long_description_content_type='text/markdown', | ||
license='MIT', | ||
author='Tuomas Mursu', | ||
author_email='[email protected]', | ||
install_requires=requires, | ||
tests_require=tests_require, | ||
packages=find_packages(), | ||
url='https://github.com/tuomur/python-odata', | ||
include_package_data=True, | ||
classifiers=[ | ||
# 'Development Status :: 4 - Beta', # Tuomas to make this call :-) | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Operating System :: OS Independent', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Database', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Topic :: Internet :: WWW/HTTP :: Dynamic Content', | ||
'Topic :: Software Development :: Libraries', | ||
], | ||
) |