Skip to content

Commit 3c07a0b

Browse files
committed
refactoring and installation
1 parent 98e3a55 commit 3c07a0b

File tree

5 files changed

+85
-4
lines changed

5 files changed

+85
-4
lines changed

.gitignore

+4-4
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ nohup.out
110110
#others
111111
notebooks/*
112112
LICENSE-MIT
113-
pyproject.toml
114-
tox.ini
113+
#pyproject.toml
114+
#tox.ini
115115
tests/*
116116
.coveragerc
117-
MANIFEST.in
118-
setup.py
117+
#MANIFEST.in
118+
#setup.py

MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md
2+
include LICENSE-MIT

pyproject.toml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[metadata]
2+
name = 'NALU'
3+
version = '0.0.1'
4+
description = ''
5+
author = 'Bharath G.S'
6+
author_email = '[email protected]'
7+
license = 'MIT'
8+
url = 'https://github.com/_/NALU'
9+
10+
[requires]
11+
python_version = ['3.6']
12+
13+
[build-system]
14+
requires = ['setuptools', 'wheel']
15+
16+
[tool.hatch.commands]
17+
prerelease = 'hatch build'

setup.py

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
from io import open
2+
3+
from setuptools import find_packages, setup
4+
5+
with open('nalu/__init__.py', 'r') as f:
6+
for line in f:
7+
if line.startswith('__version__'):
8+
version = line.strip().split('=')[1].strip(' \'"')
9+
break
10+
else:
11+
version = '0.0.1'
12+
13+
with open('README.md', 'r', encoding='utf-8') as f:
14+
readme = f.read()
15+
16+
REQUIRES = []
17+
18+
setup(
19+
name='NALU',
20+
version=version,
21+
description='basic implementation of Neural arithmetic and logic units as described in arxiv.org/pdf/1808.00508.pdf',
22+
long_description=readme,
23+
author='Bharath G.S',
24+
author_email='[email protected]',
25+
maintainer='Bharath G.S',
26+
maintainer_email='[email protected]',
27+
url='https://github.com/bharathgs/NALU',
28+
license='MIT',
29+
30+
keywords=[
31+
'NALU', 'ALU', 'neural', 'neural-networks', 'pytorch', 'NAC', 'torch', 'machine-learning'
32+
],
33+
34+
classifiers=[
35+
'Development Status :: 4 - Beta',
36+
'Intended Audience :: Developers',
37+
'License :: OSI Approved :: MIT License',
38+
'Natural Language :: English',
39+
'Operating System :: OS Independent',
40+
'Programming Language :: Python :: 3.6',
41+
'Programming Language :: Python :: Implementation :: CPython',
42+
],
43+
44+
install_requires=REQUIRES,
45+
tests_require=['coverage', 'pytest'],
46+
47+
packages=find_packages(),
48+
)

tox.ini

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[tox]
2+
envlist =
3+
py36,
4+
5+
[testenv]
6+
passenv = *
7+
deps =
8+
coverage
9+
pytest
10+
commands =
11+
python setup.py --quiet clean develop
12+
coverage run --parallel-mode -m pytest
13+
coverage combine --append
14+
coverage report -m

0 commit comments

Comments
 (0)