Skip to content

Commit 11fca4c

Browse files
committed
fix: dep for refacto
1 parent c02056c commit 11fca4c

File tree

4 files changed

+13
-41
lines changed

4 files changed

+13
-41
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ jobs:
104104
pip install -U twine wheel
105105
CFLAGS="-Wno-everything" python3 setup.py install_library build_ext sdist bdist_wheel
106106
twine check dist/*
107-
- name: Upload packages
108-
uses: actions/upload-artifact@v2
107+
108+
109+
- name: Publish distribution to PyPI
110+
uses: pypa/gh-action-pypi-publish@master
109111
with:
110-
name: parsing
111-
path: dist/*
112+
password: ${{ secrets.PYPI_API_TOKEN }}

parsing/core/cppcheck-result.xml

Lines changed: 0 additions & 26 deletions
This file was deleted.

qparsing.egg-info/PKG-INFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Metadata-Version: 2.1
2-
Name: qparsing
2+
Name: parsing
33
Version: 0.0.0
44
Summary: UNKNOWN
55
Home-page: UNKNOWN
@@ -39,13 +39,13 @@ Run the project:
3939
cd docker
4040
docker-compose build
4141
docker-compose run clang bash
42-
./qparsing/core/cmd/build.sh
42+
./parsing/core/cmd/build.sh
4343
```
4444

4545
For Tests:
4646

4747
```sh
48-
./qparsing/core/cmd/test.sh
48+
./parsing/core/cmd/test.sh
4949
```
5050

5151
This will compile all the code, build the c++ library and run the tests.

setup.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from Cython.Build import cythonize
1818

1919
BASE_DIR = pathlib.Path(__file__).parent
20-
README = ( BASE_DIR / "README.md").read_text()
2120
__version__ = os.getenv('LIB_VERSION')
2221

2322

@@ -122,13 +121,10 @@ def run(self):
122121

123122
with Pwd(self.path_to_build) as shell:
124123
shell.run(["mkdir", "-p", "build"], stdout=open(os.devnull, 'wb'))
125-
shell.run(["conan", "install", ".", "--build=missing"], stdout=open(os.devnull, 'wb'))
126-
127-
shell.run(["conan", "profile", "update", "settings.compiler.libcxx=libstdc++11", "default"], stdout=open(os.devnull, 'wb'))
128124
with Pwd('parsing/core/build') as shell:
129-
shell.run(["conan", "install", "..", "--build=missing"], stdout=open(os.devnull, 'wb'))
130-
131-
shell.run(["cmake", ".."],
125+
shell.run(["conan", "install", "..", "--build=missing" ,"-s", "compiler=clang",
126+
"-s", "compiler.libcxx=libstdc++11", '-s', "build_type=Release"], stdout=open(os.devnull, 'wb'))
127+
shell.run(["cmake", "..", "-DCMAKE_C_COMPILER=clang", "-DCMAKE_CXX_COMPILER=clang++" ],
132128
stdout=open(os.devnull, 'wb'))
133129
log.info("Building static library...",)
134130

@@ -146,7 +142,8 @@ def run(self):
146142
version = __version__,
147143
author='Oguzhan San',
148144
package_data={'': ["*.so",'*.pyx', '*.pxd', '*.h', '*.cpp', '*.hpp']},
149-
long_description=README,
145+
long_description=open("README.md").read() + "\n\n" +
146+
open(os.path.join("docs", "versions.md")).read(),
150147
long_description_content_type="text/markdown",
151148
packages=setuptools.find_packages(exclude=[ "tests/*", "utils"]),
152149
include_package_data=True,

0 commit comments

Comments
 (0)