-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
50 lines (45 loc) · 1.88 KB
/
setup.py
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
from os import path as os_path
from setuptools import setup, find_packages
import pynars
this_directory = os_path.abspath(os_path.dirname(__file__))
def read_file(filename):
with open(os_path.join(this_directory, filename), encoding='utf-8') as f:
long_description = f.read()
return long_description
def read_requirements(filename):
return [line.strip() for line in read_file(filename).splitlines()
if not line.startswith('#')]
setup(
name='pynars',
python_requires='>=3.7.0', # python version
version= pynars.version, # package version
description="An implementation of Non-Axiomatic Reasoning System", # introduction, displayed on PyPI
long_description=read_file('README.md'), # Readme
long_description_content_type="text/markdown", # markdown
author="Bowen XU",
author_email='xubowen@pku.edu.cn',
url='https://github.com/bowen-xu/PyNARS',
packages=find_packages(),
install_requires=read_requirements('requirements.txt'),
include_package_data=True,
package_data={
'': ['*.json', '*.lark', '*.txt'],
'pynars.utils.SparseLUT': ['*.pyd', '*.pyi'],
},
license="MIT",
keywords=['NARS', 'Non-Axiomatic Reasoning System', 'NAL', 'Non-Axiomatic Logic', 'Narsese'],
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Natural Language :: Chinese (Simplified)',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'
],
)