-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
144 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
include pyilcd/VERSION | ||
include pyilcd/schemas/*.xsd |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Common custom ILCD Python classes.""" | ||
|
||
from datetime import datetime | ||
from typing import List | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Defaults configuration.""" | ||
|
||
import configparser | ||
import os | ||
from dataclasses import dataclass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Custom ILCD Python classes for FlowDataSet of ILCD schema.""" | ||
|
||
from typing import List | ||
|
||
from lxml import etree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
"""Custom ILCD Python classes for FlowDataSet of ILCD schema.""" | ||
|
||
from typing import List | ||
|
||
from lxml import etree | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,104 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0"] | ||
requires = ["setuptools>=68.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "pyilcd" | ||
authors = [ | ||
{ name="Mina Sami", email="[email protected]" } | ||
] | ||
maintainers = [ | ||
{ name="Mina Sami", email="[email protected]" } | ||
] | ||
description = "A Python package that converts ILCD XML formats to their Python equivalents and export the same data back to XML." | ||
readme = "README.md" | ||
dynamic = ["version"] | ||
# Add here all kinds of additional classifiers as defined under | ||
# https://pypi.org/classifiers/ | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"lxml==4.9.2", | ||
"lxmlh>=1.2.0", | ||
"pycasreg==0.1.0", | ||
] | ||
|
||
[project.urls] | ||
source = "https://github.com/sami-m-g/pyilcd" | ||
homepage = "https://github.com/sami-m-g/pyilcd" | ||
tracker = "https://github.com/sami-m-g/pyilcd/issues" | ||
|
||
[project.optional-dependencies] | ||
# Getting recursive dependencies to work is a pain, this | ||
# seems to work, at least for now | ||
testing = [ | ||
"pyilcd", | ||
"pytest", | ||
"pytest-cov", | ||
"python-coveralls" | ||
] | ||
dev = [ | ||
"build", | ||
"pre-commit", | ||
"pylint", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-randomly", | ||
"setuptools", | ||
"sphinx", | ||
"sphinx-rtd-theme", | ||
] | ||
|
||
[tool.setuptools] | ||
license-files = ["LICENSE"] | ||
include-package-data = true | ||
packages = ["pyilcd"] | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "pyilcd.__version__"} | ||
|
||
[tool.pytest.ini_options] | ||
addopts = "--cov pyilcd --cov-report term-missing --verbose" | ||
norecursedirs = [ | ||
"dist", | ||
"build", | ||
".tox" | ||
] | ||
testpaths = ["tests/*.py"] | ||
|
||
[tool.flake8] | ||
# Some sane defaults for the code style checker flake8 | ||
max_line_length = 88 | ||
extend_ignore = ["E203", "W503"] | ||
# ^ Black-compatible | ||
# E203 and W503 have edge cases handled by black | ||
exclude = [ | ||
".tox", | ||
"build", | ||
"dist", | ||
".eggs", | ||
"docs/conf.py", | ||
] | ||
|
||
[tool.black] | ||
line-length = 88 | ||
|
||
[tool.isort] | ||
profile = "black" | ||
line_length = 88 | ||
multi_line_output = 3 | ||
include_trailing_comma = true | ||
force_grid_wrap = 0 | ||
use_parentheses = true | ||
ensure_newline_before_comments = true |
Oops, something went wrong.