-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
53 lines (47 loc) · 1.79 KB
/
setup.py
File metadata and controls
53 lines (47 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import re
import os
from setuptools import setup, find_packages
def find_version(*file_paths):
with open(os.path.join(*file_paths)) as fo:
version_file = fo.read()
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]$',
version_file, re.MULTILINE)
if version_match:
return version_match.group(1)
raise RuntimeError('Unable to find version string.')
# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
package_name = 'pydbpedia'
setup(
name=package_name,
description='pyDBpedia is a simple python wrapper for querying dbpedia',
long_description=long_description,
long_description_content_type='text/markdown',
version=find_version(package_name, '__init__.py'),
packages=find_packages(exclude=('tests',)),
author='Matteus Tanha',
author_email='matteus.tanha@gmail.com',
url='https://github.com/MatteusT/pyDBpedia',
download_url='https://github.com/MatteusT/pyDBpedia/archive/v0.0.1.tar.gz',
keywords=['DBpedia', 'knowledge base'],
install_requires=(
'requests==2.22.0',
),
include_package_data=True,
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Operating System :: OS Independent",
"Natural Language :: English",
],
license="Apache 2.0",
python_requires=">=3.6",
)