Skip to content

Commit d4ace42

Browse files
Krandeaothms
authored andcommitted
Prep BCF for pypi upload.
* Refactored the BCF dir into a "src-layout" which I am more comfortable with. We can likely change this back if it is not compatible with other development * I added a few setup files for the bcf package (setup.cfg, pyproject.toml and a MANIFEST.in file) * Added two __init__.py files in the v2 and v3 subfolders for them to be picked up during package compilation
1 parent 9c81418 commit d4ace42

24 files changed

+53
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ jobs:
6868
sudo make -j $(nproc)
6969
sudo make install
7070
71-
- name: install xmlschema
71+
- name: install dependencies
7272
run: |
7373
sudo /usr/bin/python -m pip install -U pip
7474
sudo /usr/bin/python -m pip install xmlschema numpy
75+
sudo /usr/bin/python -m pip install src/bcf
7576
7677
- name: Test
7778
run: |

src/bcf/MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include src/bcf/v2/xsd/*.xsd
2+
include src/bcf/v3/xsd/*.xsd

src/bcf/pyproject.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=42",
4+
"wheel"
5+
]
6+
build-backend = "setuptools.build_meta"
7+
8+
[tool.black]
9+
line-length = 120
10+
11+
[tool.isort]
12+
profile = "black"

src/bcf/setup.cfg

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[metadata]
2+
name=bcf-client
3+
version=0.0.1
4+
author = Ifcopenshell
5+
description = A simple Python implementation of BCF
6+
url = https://github.com/IfcOpenShell/IfcOpenShell
7+
project_urls =
8+
Code=https://github.com/IfcOpenShell/IfcOpenShell
9+
Issues=https://github.com/IfcOpenShell/IfcOpenShell/issues
10+
long_description = file: README.md
11+
long_description_content_type = text/markdown
12+
classifiers =
13+
License :: OSI Approved :: GNU General Public License v3 (GPLv3)
14+
Operating System :: OS Independent
15+
Programming Language :: Python :: 3
16+
Topic :: Scientific/Engineering
17+
Topic :: Utilities
18+
keywords =
19+
Python
20+
file formats
21+
engineering
22+
23+
[options]
24+
package_dir =
25+
= src
26+
packages = find:
27+
python_requires = >=3
28+
install_requires=
29+
xmlschema
30+
include_package_data = True
31+
32+
[options.packages.find]
33+
where = src
34+
35+
[flake8]
36+
max-line-length = 120
37+
ignore = E24, E121, E123, E126, E203, E226, E704, E741, W503, W504

src/bcf/src/bcf/v2/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)