Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Better setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Girbons committed Apr 7, 2017
1 parent 41104fa commit eb26492
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 8 deletions.
12 changes: 12 additions & 0 deletions bf1/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Battlefield 1 SDK
"""

__title__ = 'Battlefield 1 SDK'
__version__ = '0.1'
__author__ = 'Alessandro De Angelis'
__license__ = 'MIT'
__copyright__ = 'Copyright 2017 Alessandro De Angelis'

# Version synonym
VERSION = __version__
38 changes: 30 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
from setuptools import setup, find_packages
import os
import re


def get_version(package):
"""
Return package version as listed in `__version__` in `__init__.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)


version = get_version('bf1')

LONG_DESCRIPTION = open('README.rst').read()


setup(
name="battlefield1-sdk",
version="0.1",
description="Battlefield 1 SDK python",
long_description=open('README.rst').read(),
version=version,
author="Alessandro De Angelis",
packages=find_packages(),
install_requires=[
'requests',
'pyOpenSSL'
]
author_email="alessandrodea22@gmail.com",
description="Battlefield 1 sdk",
long_description=LONG_DESCRIPTION,
license="MIT",
keywords="Battlefield 1 SDK",
packages=find_packages(exclude=['tests*']),
install_requires=['requests', 'pyOpenSSL'],
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5",
"Topic :: Software Development :: Libraries :: Python Modules"
],
)

0 comments on commit eb26492

Please sign in to comment.