Commit graph

87 commits

Author SHA1 Message Date
Andy Kipp
7a915113f6
Pin prompt-toolkit version (#5288)
* Update pyproject.toml

* Create pin-ptk.rst

* chore: strip whitespace

---------

Co-authored-by: Gil Forsyth <gil@forsyth.dev>
2024-02-24 18:42:50 -05:00
Andy Kipp
e95a8099af
Update pull_request_template.md (#5282) 2024-02-21 19:14:01 +05:30
dependabot[bot]
53b5da8265
Bump codecov/codecov-action from 3 to 4 (#5274)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 14:14:57 +01:00
Andy Kipp
a76a2f665f
Update config.yml: improve the text (#5247)
* Update config.yml

* Update config.yml
2023-12-14 11:51:44 +01:00
dependabot[bot]
919bedd190
Bump actions/setup-python from 4 to 5 (#5243)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-11 10:58:51 +01:00
dependabot[bot]
a6b6cf42c9
Bump tibdex/github-app-token from 1 to 2 (#5203)
Bumps [tibdex/github-app-token](https://github.com/tibdex/github-app-token) from 1 to 2.
- [Release notes](https://github.com/tibdex/github-app-token/releases)
- [Commits](https://github.com/tibdex/github-app-token/compare/v1...v2)

---
updated-dependencies:
- dependency-name: tibdex/github-app-token
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 10:48:19 +05:30
dependabot[bot]
bb7c515a29
Bump actions/checkout from 3 to 4 (#5204)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-18 10:44:38 +05:30
Noorhteen Raja NJ
769dfbe6aa
Py 312 pre-liminary support (#5156)
* refactor: project requires 3.9+

changed as per NEP-29
https://numpy.org/neps/nep-0029-deprecation_policy.html

* test: nose type tests are deprecated in pytest now

* fix: deprecation of ast.Str and ast.Bytes and .s attribute access

* fix: deprecation of ast.Num,ast.NameConstant,ast.Ellipsis

* refactor: upgrade code to be py39+ using ruff

the changes are auto-generated

* refactor: remove typing.Annotated compatibility code

* fix: temporarily disable having xonsh syntax inside f-strings

* test: skip failing tests

there is no workaround for this version. It might get solved in the
final release though

* refactor: make XonshSession.completer lazily populated

this speedsup the tests as cmd_cache would not be actively populated
when used in default_completers function

* refactor: make presence of walrus operator default
2023-07-04 22:18:37 +05:30
Gil Forsyth
9b4ca3e5fe ci: add python 3.11 to CI 2023-01-17 13:27:17 -05:00
Gil Forsyth
a587e7ec8c
chore: add 3.11 to wheel release action (#5009) 2022-12-11 14:14:50 +05:30
Ashish Kurmi
23a7507dcc
ci: add minimum GitHub token permissions for workflow (#4936)
Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>

Signed-off-by: Ashish Kurmi <akurmi@stepsecurity.io>
2022-09-12 10:56:08 -04:00
Gil Forsyth
013fa760a0
refactor(amalgamate): remove amalgamation (#4858)
Co-authored-by: Noorhteen Raja NJ <jnoortheen@gmail.com>
2022-07-04 10:40:16 +05:30
Noorhteen Raja NJ
cbf23e60fb
Pre commit ci (#4863) 2022-07-01 11:47:01 -04:00
Noorhteen Raja NJ
5b98d9d735
fix-pypi-gha (#4843) 2022-06-21 10:42:47 -04:00
Gil Forsyth
e3a7e8718c
hotfix gha publish to pypi 2022-06-17 12:49:58 -04:00
Noorhteen Raja NJ
3716f3da86
Pr5 xontrib entrypoints (#4827) 2022-06-17 12:39:12 -04:00
dependabot[bot]
538c26f0e3
chore(deps): bump actions/setup-python from 3 to 4 (#4837)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 10:13:26 +05:30
dependabot[bot]
0ddc05e82e
chore(deps): bump actions/setup-python from 2 to 3 (#4834)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 3.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:22:20 +05:30
dependabot[bot]
daa5d5300b
chore(deps): bump actions/checkout from 2 to 3 (#4833)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:14:34 +05:30
dependabot[bot]
0c9c593d1b
chore(deps): bump codecov/codecov-action from 2 to 3 (#4832)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 2 to 3.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-08 19:13:32 +05:30
Naveen
40383d1f09
chore: Included githubactions in the dependabot config (#4831)
This should help with keeping the GitHub actions updated on new releases. This will also help with keeping it secure.

Dependabot helps in keeping the supply chain secure https://docs.github.com/en/code-security/dependabot

GitHub actions up to date https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot

https://github.com/ossf/scorecard/blob/main/docs/checks.md#dependency-update-tool
Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-08 10:50:42 +05:30
Naveen
8088a3e62e
chore: Set permissions for GitHub actions (#4830)
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much.

- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions

https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs

[Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/)

Signed-off-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
2022-06-06 10:41:33 +05:30
Noorhteen Raja NJ
e7ab9a4eb8
fix: checking news item pattern (#4814) 2022-05-23 10:19:14 -04:00
Noorhteen Raja NJ
ed4421ddf4
pr5-pep621 (#4803) 2022-05-10 11:39:43 -04:00
Noorhteen Raja NJ
73a880f76a
chore: drop py3.7 (#4770) 2022-04-26 09:00:31 -04:00
Noortheen Raja
bff0794b68 ci: news-item checker cleanup 2022-04-12 14:19:15 +05:30
Noortheen Raja
ea51a8a37f fix: pr commentor 2022-04-10 13:46:56 +05:30
Noorhteen Raja NJ
f4275b7992
chore: pass env variables (#4741) 2022-03-28 14:24:04 -04:00
Noorhteen Raja NJ
d004784621
Comment pr (#4738)
* feat: make check-news item a warning

* chore: use python script to comment on PR without news items
2022-03-27 17:55:42 +05:30
Noortheen Raja
fcf6f37d5b chore: add back codecov reports 2022-03-25 10:41:42 -04:00
Noortheen Raja
a13a3af21f chore: try to comment news item missing
chore: make news item check a comment
2022-03-22 19:13:11 +05:30
Noortheen Raja
0acb256740 fix: mypy errors in ci
chore: upgrade mypy
2022-03-22 19:13:11 +05:30
Noortheen Raja
fa9c33b55b chore: cancel previous still running jobs for PRs 2022-03-22 19:13:11 +05:30
Noortheen Raja
d0f127718f chore: add tmate for manual ssh into runner 2022-03-22 19:13:11 +05:30
Noortheen Raja
ac1592c458 chore: use wheel to speedup binary installs 2022-03-22 19:13:11 +05:30
Noortheen Raja
a7ef90cce6 fix: upload coverage for latest py version
fix: checking qa without amalgamation

fix: correct if expression

chore: update condition

chore: disable fail-fast

chore: update name
2022-03-22 19:13:11 +05:30
Noortheen Raja
e6043ca5aa chore: use matrix for CI
github has added
https://github.blog/2022-03-16-save-time-partial-re-runs-github-actions/

we can drop custom file generation

refactor: run with bash

chore: use setup-python

conda is also available in the github action virtualenv
2022-03-22 19:13:11 +05:30
Gil Forsyth
f0d77b28e8
chore: call token personal_token
Just in case this action thinks it knows better
2022-03-15 10:50:32 -04:00
Gil Forsyth
688d91f377
chore: add repo name to token generation for docs push 2022-03-15 10:33:44 -04:00
Gil Forsyth
14fe0355d0
fix(maybe): use generated token to push docs (#4691)
Got the token to generate correctly, but now it's complaining about
scoping -- might be that it needs to be generated for xonsh/xonsh to
push to xonsh/xonsh-docs
2022-03-04 08:06:25 +05:30
Noorhteen Raja NJ
af8570a21a Update issue templates 2022-03-01 08:53:49 -05:00
Noorhteen Raja NJ
269a6d48e7
chore: point to discussions in case of Q&A (#4681) 2022-02-28 16:33:46 +05:30
dev2718
0ba5bec86f
Feat: support for match statement for python >= 3.10 (#4672)
* feat: initial match statement support

* refactor assignment exprs for <3.8 compatibility; sort imports

* remove match extensions

* bump qa-workflow python version, minor alterations for qa-pipeline

* add mypy exception

* update mypy version

* Bump workflow main python version to 3.10

* remove outdated note

Co-authored-by: Alexander Firbas <alexander.firbas@gmail.com>
2022-02-25 17:00:00 +05:30
Gil Forsyth
278bd87d7c
chore: fix generated token for docs push (#4658) 2022-01-26 07:52:47 +05:30
Noorhteen Raja NJ
360933fb69
build docs in PR (#4645) 2022-01-18 12:37:14 -05:00
Noorhteen Raja NJ
9fbecfc155
feat: use github actions to deploy docs (#4641)
* feat: use github actions to deploy docs

fixes #4473

* fix: install xonsh

* fix: doc action

* chore: support *.md for documentation

* fix: remove hardcoded docs link

it affects local testing

* refactor: move sphinx extensions to its own package

* fix: remove deprecated get_theme_dir

As of Sphinx 1.2, this is passed to Sphinx via a ``setup.py`` entry
point,
and no longer needs to be included in your documentation's
``conf.py``.

* feat: jinja2 render without affecting incremental build

* style:

* feat: auto generate API doc

no need to create a file for each module

* chore: watch top-level and nested files

* refactor: update lib api-docs as well

* fix: import errors when doc generated

for some modules

* fix: relative path

* feat: add release handling

* Update .github/workflows/docs.yml

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>

* refactor: use github-app-token

* chore: deploy docs only when merged

Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
2022-01-18 11:38:27 -05:00
Noorhteen Raja NJ
0ea9dd8811
fix: xonfig web is not upto-date (#4606)
* fix: xonfig web is not upto-date

it should load data from backend

* refactor: update elm-compile module

* feat: update `xonfig web`

* todo:

* style:

* tmp

* feat: implements colors page

* feat: implement prompts page

* feat: implement xontribs page

* refactor: remove elm from project

* fix: qa errors

* docs:

* test: add test for xonfig.web

* fix: lru-cache call

* feat: add env variable for sys level config dir

* refactor: add method to handle post

* feat: implement updating prompts

* feat: implement xontribs update page

* style:

* fix: tests failure

* feat: add variables page

* feat: add abbrevs,aliases pages

* feat: run xonfig web in main process

this way we can update the current session

* style: optimize imports

* docs:

* refactor: write .xonshrc as the old code

* refactor: split file write functions
2022-01-18 11:11:16 -05:00
Noorhteen Raja NJ
adafa20b88
adopt NEP-0029 (#4568)
* chore: adopt NEP-0029 for py version deprecation policy

fixes #4560

* chore: drop py3.6 from CI

* docs: add news item

* fix: failing qa because latest version to flake8-bugbear

see https://github.com/PyCQA/flake8-bugbear/issues/208

* chore: require >=py3.7
2021-11-29 12:48:48 -05:00
Noorhteen Raja NJ
5df00b863a
chore: use conda to install py310 (#4519) 2021-11-17 13:40:19 -05:00
Noorhteen Raja NJ
4b0918f9e3
fix: failing ci checks with black and mypy (#4517)
pip21.3 has changed the behaviour of build - https://pip.pypa.io/en/stable/news/#v21-3 to use in-tree-build by default. this creates amalgamated files.

this will install as editable dependency during qa checks

for some reason mypy exclude for __amalgam__.py is not working
2021-10-14 17:01:44 -04:00