Skip to content

Commit

Permalink
Merge pull request #3 from DFKI-NLP/include-other-files-to-build
Browse files Browse the repository at this point in the history
Fix(build): restructure project
  • Loading branch information
MoeBensu authored Jun 29, 2023
2 parents e12f5f8 + 7565138 commit 0560b66
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 19 deletions.
12 changes: 12 additions & 0 deletions pynegex/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import os
from pathlib import Path

from pynegex.model.runners import run
# cwd = os.path.dirname(__file__)


# with open(os.path.join(cwd, "VERSION"), "r", encoding="utf-8") as f:
# version = f.read().strip()

# __version__ = version
# __path__ = __import__('pkgutil').extend_path(__path__, __name__)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 5 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
import os
from setuptools import Extension, find_packages, setup
from pathlib import Path
cwd = Path(__file__).parent

cwd = Path(__file__).parent
long_description = (cwd / "README.md").read_text()

cwd = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(cwd, "src/pynegex", "VERSION")) as fin:
version = fin.read().strip()
version = "0.0.3-dev"

setup(
name='pynegex',
Expand All @@ -20,12 +18,11 @@
long_description=long_description,
long_description_content_type='text/markdown',
# Find packages under the 'src' directory
packages=find_packages(where='src'),
packages=find_packages(),
# Root directory for the packages
package_dir={'pynegex': 'src'},
package_dir={'pynegex': 'pynegex'},
package_data={'pynegex': [
"src/pynegex/VERSION",
"src/pynegex/model/triggersets/*.txt"
"model/triggersets/*.txt"
]},
py_modules=["pynegex"], # Name of the python package
# List any dependencies required by your package)
Expand Down
1 change: 0 additions & 1 deletion src/pynegex/VERSION

This file was deleted.

10 changes: 0 additions & 10 deletions src/pynegex/__init__.py

This file was deleted.

0 comments on commit 0560b66

Please sign in to comment.