Skip to content

Commit 09fa127

Browse files
committed
Merge branch 'chore/kolasu-alignment'
2 parents 22f1678 + 7554495 commit 09fa127

10 files changed

Lines changed: 49 additions & 6 deletions

File tree

.github/workflows/pythonapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
python: [ '3.7', '3.8', '3.9', '3.10' ]
9+
python: [ '3.7', '3.8', '3.9', '3.10', '3.11' ]
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ pyvenv.cfg
1212
__pycache__
1313
/.token
1414
/antlr-*.jar
15+
.DS_Store

.readthedocs.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# Required
66
version: 2
77

8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.11"
12+
813
# Build documentation in the docs/ directory with Sphinx
914
sphinx:
1015
configuration: docs/conf.py

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Changelog
2+
All notable changes to this project from version 0.4.0 upwards are documented in this file.
3+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
4+
5+
## [0.5.0] – 2023-09-06
6+
7+
### Added
8+
- AST transformers, aligned with the latest Kolasu 1.5.x version
9+
- `assert_asts_are_equal` function to support writing assertions in a test suite
10+
- documentation generation (published on https://pylasu.readthedocs.io)
11+
- export more symbols
12+
13+
### Changed
14+
- Alignment with Kolasu:
15+
- `PropertyDescriptor` renamed to `PropertyDescription`
16+
- `Node.properties` generates `PropertyDescription` instances rather than tuples
17+
18+
### Fixed
19+
- `PossiblyNamed` implementation
20+
- `Concept.node_properties`

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prune tests

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,18 @@ flake8 . && flake8 tests
2020

2121
## Packaging and distributing
2222

23-
Update version in pyproject.toml, setup.cfg and setup.py _(TODO do we need all three?)_, then run:
23+
Update version in `pyproject.toml`, `setup.cfg` and `pylasu/__version__.py` _(TODO do we need all three?)_,
24+
commit and check that CI completes normally. Then run:
2425

2526
```shell
2627
rm dist/*
2728
python -m build
2829
python -m twine upload dist/*
2930
```
3031

32+
**Note:** if we have [two-factor authentication (2FA)](https://pypi.org/help/#twofa) enabled on PyPI,
33+
we have to [use an API token](https://pypi.org/help/#apitoken).
34+
3135
If all goes well, tag the release:
3236

3337
```shell
@@ -57,4 +61,5 @@ make html
5761
If everything goes as it should, in `docs/_build/html` you'll find the generated documentation.
5862

5963
We also host the documentation on ReadTheDocs. The project is [pylasu](https://readthedocs.org/projects/pylasu/).
60-
Documentation needs to be built manually for each release for it to appear online on https://pylasu.readthedocs.io.
64+
Documentation needs to be [built manually](https://readthedocs.org/projects/pylasu/) for each release for it to appear
65+
online on https://pylasu.readthedocs.io.

pylasu/__version__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.5.0"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pylasu"
7-
version = "0.4.0"
7+
version = "0.5.0"
88
authors = [
99
{ name="Lorenzo Addazi", email="lorenzo.addazi@strumenta.com" },
1010
{ name="Alessio Stalla", email="alessio.stalla@strumenta.com" },

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = Pylasu
3-
version: 0.4.0
3+
version: 0.5.0
44

55
[coverage:run]
66
branch = True

setup.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1+
import os
2+
13
from setuptools import find_packages, setup
4+
5+
here = os.path.abspath(os.path.dirname(__file__))
6+
7+
# Load the package's __version__.py module as a dictionary.
8+
about = {}
9+
with open(os.path.join(here, "pylasu", '__version__.py')) as f:
10+
exec(f.read(), about)
11+
212
setup(
313
name='pylasu',
414
packages=find_packages(exclude=["tests"]),
5-
version='0.4.0',
15+
version=about['__version__'],
616
description='Pylasu is an AST Library in the StarLasu family, targeting the Python language.',
717
author='Strumenta S.R.L.',
818
license='Apache License V2',

0 commit comments

Comments
 (0)