Skip to content

Commit

Permalink
change structure
Browse files Browse the repository at this point in the history
  • Loading branch information
shinokumura committed Aug 8, 2023
1 parent d31f213 commit 91f5366
Show file tree
Hide file tree
Showing 38 changed files with 563 additions and 471 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ dmypy.json
.vscode/

# under development
*/pickles*
*.pickle
evaluations/
geo/
docker/
Expand Down Expand Up @@ -188,6 +190,4 @@ sqldb.py
check*
json.schema
*.sh

# other packages
exfor_dictionary/
uninstall.txt
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "submodules"]
path = submodules
path = src/exforparser/submodules
url = https://github.com/shinokumura/exparser-submodule.git
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include src/tabulated/MTall.dat
include src/tabulated/*.json
include src/submodules/utilities/*.txt
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

Binary file removed pickles/entry.pickle
Binary file not shown.
Binary file removed pickles/institute.pickle
Binary file not shown.
51 changes: 51 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"


[project]
name = "exforparser"
authors = [
{name = "Shin Okumura/IAEA-NDS", email = "[email protected]"},
]
version = "1.0.0b"
description = "EXFOR Parser"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["EXFOR", "Nuclear Data"]
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
dynamic = ["dependencies"]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}


[tool.setuptools.packages.find]
where = ["src"]


[tool.setuptools]
include-package-data = true


[tool.setuptools.package-data]
"exforparser.tabulated" = ["*.dat", "*.json"]
"submodules.utilities" = ["*.txt"]




[project.urls]
Homepage = "https://github.com/shinokumura/exforparser"


[project.scripts]
exparser = "exforparser.exparser:main"
tabulated = "exforparser.tabulated:main"
test = "exforparser.pa:main"
12 changes: 8 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
common==0.1.2
numpy==1.23.0
greenlet==2.0.2
numpy==1.25.2
pandas==2.0.3
pyparsing==3.1.1
setuptools==57.5.0
python-dateutil==2.8.2
pytz==2023.3
git+https://github.com/shinokumura/ripl3_json.git
six==1.16.0
SQLAlchemy==2.0.18
exfor_dictionary @ git+https://github.com/IAEA-NDS/exfor_dictionary@main
ripl3_json @ git+https://github.com/shinokumura/ripl3_json@main
typing_extensions==4.7.1
tzdata==2023.3
64 changes: 36 additions & 28 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,41 @@
from setuptools import setup, find_packages
import setuptools

if __name__ == "__main__":
setuptools.setup()

def read_requirements(file):
with open(file) as f:
return f.read().splitlines()
# from setuptools import setup, find_packages

def read_file(file):
with open(file) as f:
return f.read()
# # print(find_packages())
# # --> return ['tabulated', 'parser', 'sql']

version = read_file("VERSION")
requirements = read_requirements("requirements.txt")
# def read_requirements(file):
# with open(file) as f:
# return f.read().splitlines()

setup(
name="exforparser",
description="EXFOR Parser",
packages=find_packages(exclude=["test"]),
version=version,
author="Shin Okumura/IAEA-NDS",
author_email="[email protected]",
maintainer="IAEA-NDS",
maintainer_email="[email protected]",
license="GPL-2.0 license",
url="https://github.com/[email protected]/exforparser",
python_requires=">=3.8",
install_requires=requirements,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: GPL-2.0 license",
],
)
# def read_file(file):
# with open(file) as f:
# return f.read()

# version = read_file("VERSION")
# requirements = read_requirements("requirements.txt")

# setup(
# name="exforparser",
# description="EXFOR Parser",
# packages=find_packages(exclude=["test"]),
# py_modules=['exparser', 'tabulated'],
# version=version,
# author="Shin Okumura/IAEA-NDS",
# author_email="[email protected]",
# maintainer="IAEA-NDS",
# maintainer_email="[email protected]",
# license="GPL-2.0 license",
# url="https://github.com/[email protected]/exforparser",
# python_requires=">=3.8",
# install_requires=requirements,
# classifiers=[
# "Programming Language :: Python :: 3",
# "Operating System :: OS Independent",
# "License :: OSI Approved :: GPL-2.0 license",
# ],
# )
Loading

0 comments on commit 91f5366

Please sign in to comment.