emtl 0.1.0__tar.gz → 0.1.2.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. {emtl-0.1.0 → emtl-0.1.2.dev2}/.bumpversion.cfg +5 -5
  2. {emtl-0.1.0 → emtl-0.1.2.dev2}/.cookiecutterrc +7 -7
  3. {emtl-0.1.0 → emtl-0.1.2.dev2}/.coveragerc +2 -4
  4. emtl-0.1.2.dev2/.github/workflows/github-actions.yml +97 -0
  5. emtl-0.1.2.dev2/.gitignore +78 -0
  6. {emtl-0.1.0 → emtl-0.1.2.dev2}/.pre-commit-config.yaml +2 -2
  7. emtl-0.1.2.dev2/CHANGELOG.rst +13 -0
  8. {emtl-0.1.0 → emtl-0.1.2.dev2}/LICENSE +1 -1
  9. {emtl-0.1.0/src/emtl.egg-info → emtl-0.1.2.dev2}/PKG-INFO +15 -10
  10. {emtl-0.1.0 → emtl-0.1.2.dev2}/README.rst +5 -5
  11. {emtl-0.1.0 → emtl-0.1.2.dev2}/ci/templates/.github/workflows/github-actions.yml +9 -2
  12. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/conf.py +13 -7
  13. {emtl-0.1.0 → emtl-0.1.2.dev2}/pyproject.toml +1 -0
  14. {emtl-0.1.0 → emtl-0.1.2.dev2}/pytest.ini +9 -0
  15. {emtl-0.1.0 → emtl-0.1.2.dev2}/setup.py +18 -8
  16. emtl-0.1.2.dev2/src/emtl/__init__.py +9 -0
  17. emtl-0.1.2.dev2/src/emtl/_version.py +16 -0
  18. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl/cli.py +4 -8
  19. emtl-0.1.2.dev2/src/emtl/core.py +8 -0
  20. emtl-0.1.2.dev2/src/emtl/tests/test_cli.py +5 -0
  21. emtl-0.1.2.dev2/src/emtl/tests/test_core.py +14 -0
  22. {emtl-0.1.0 → emtl-0.1.2.dev2/src/emtl.egg-info}/PKG-INFO +15 -10
  23. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl.egg-info/SOURCES.txt +2 -1
  24. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl.egg-info/entry_points.txt +1 -0
  25. {emtl-0.1.0 → emtl-0.1.2.dev2}/tox.ini +10 -11
  26. emtl-0.1.0/.github/workflows/github-actions.yml +0 -185
  27. emtl-0.1.0/CHANGELOG.rst +0 -8
  28. emtl-0.1.0/MANIFEST.in +0 -22
  29. emtl-0.1.0/src/emtl/__init__.py +0 -7
  30. emtl-0.1.0/src/emtl/core.py +0 -2
  31. emtl-0.1.0/src/emtl/tests/test_cli.py +0 -5
  32. emtl-0.1.0/src/emtl/tests/test_core.py +0 -5
  33. {emtl-0.1.0 → emtl-0.1.2.dev2}/.editorconfig +0 -0
  34. {emtl-0.1.0 → emtl-0.1.2.dev2}/.readthedocs.yml +0 -0
  35. {emtl-0.1.0 → emtl-0.1.2.dev2}/AUTHORS.rst +0 -0
  36. {emtl-0.1.0 → emtl-0.1.2.dev2}/CONTRIBUTING.rst +0 -0
  37. {emtl-0.1.0 → emtl-0.1.2.dev2}/ci/bootstrap.py +0 -0
  38. {emtl-0.1.0 → emtl-0.1.2.dev2}/ci/requirements.txt +0 -0
  39. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/authors.rst +0 -0
  40. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/changelog.rst +0 -0
  41. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/contributing.rst +0 -0
  42. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/index.rst +0 -0
  43. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/installation.rst +0 -0
  44. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/readme.rst +0 -0
  45. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/reference/emtl.rst +0 -0
  46. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/reference/index.rst +0 -0
  47. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/requirements.txt +0 -0
  48. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/spelling_wordlist.txt +0 -0
  49. {emtl-0.1.0 → emtl-0.1.2.dev2}/docs/usage.rst +0 -0
  50. {emtl-0.1.0 → emtl-0.1.2.dev2}/setup.cfg +0 -0
  51. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl/__main__.py +0 -0
  52. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl/tests/__init__.py +0 -0
  53. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl.egg-info/dependency_links.txt +0 -0
  54. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl.egg-info/not-zip-safe +0 -0
  55. {emtl-0.1.0 → emtl-0.1.2.dev2}/src/emtl.egg-info/top_level.txt +0 -0
@@ -1,19 +1,19 @@
1
1
  [bumpversion]
2
- current_version = 0.1.0
2
+ current_version = 0.1.1
3
3
  commit = True
4
4
  tag = True
5
5
 
6
6
  [bumpversion:file:setup.py]
7
- search = version="{current_version}"
8
- replace = version="{new_version}"
7
+ search = "fallback_version": "{current_version}"
8
+ replace = "fallback_version": "{new_version}"
9
9
 
10
10
  [bumpversion:file (badge):README.rst]
11
11
  search = /v{current_version}.svg
12
12
  replace = /v{new_version}.svg
13
13
 
14
14
  [bumpversion:file (link):README.rst]
15
- search = /v{current_version}...main
16
- replace = /v{new_version}...main
15
+ search = /v{current_version}...master
16
+ replace = /v{new_version}...master
17
17
 
18
18
  [bumpversion:file:docs/conf.py]
19
19
  search = version = release = "{current_version}"
@@ -31,31 +31,31 @@ default_context:
31
31
  function_name: "emt"
32
32
  github_actions: "yes"
33
33
  github_actions_osx: "yes"
34
- github_actions_windows: "yes"
34
+ github_actions_windows: "no"
35
35
  license: "MIT license"
36
36
  module_name: "core"
37
37
  package_name: "emtl"
38
38
  pre_commit: "yes"
39
39
  project_name: "emtl"
40
- project_short_description: "An example package. Generated with cookiecutter-pylibrary."
40
+ project_short_description: "东方财富交易系统"
41
41
  pypi_badge: "yes"
42
42
  pypi_disable_upload: "no"
43
43
  release_date: "today"
44
44
  repo_hosting: "github.com"
45
45
  repo_hosting_domain: "github.com"
46
- repo_main_branch: "main"
46
+ repo_main_branch: "master"
47
47
  repo_name: "emtl"
48
48
  repo_username: "riiy"
49
49
  scrutinizer: "no"
50
- setup_py_uses_setuptools_scm: "no"
50
+ setup_py_uses_setuptools_scm: "yes"
51
51
  sphinx_docs: "yes"
52
52
  sphinx_docs_hosting: "https://emtl.readthedocs.io/"
53
53
  sphinx_doctest: "no"
54
54
  sphinx_theme: "furo"
55
- test_matrix_separate_coverage: "no"
55
+ test_matrix_separate_coverage: "yes"
56
56
  tests_inside_package: "yes"
57
- version: 0.1.0
57
+ version: "0.1.0"
58
58
  version_manager: "bump2version"
59
59
  website: "riiy.gihub.io/emtl"
60
60
  year_from: "2024"
61
- year_to: "2024"
61
+ year_to: "2025"
@@ -1,12 +1,10 @@
1
1
  [paths]
2
- source =
3
- src
4
- */site-packages
2
+ source = src
5
3
 
6
4
  [run]
7
5
  branch = true
8
6
  source =
9
- emtl
7
+ src
10
8
  tests
11
9
  parallel = true
12
10
 
@@ -0,0 +1,97 @@
1
+ name: build
2
+ on: [push, pull_request, workflow_dispatch]
3
+ jobs:
4
+ test:
5
+ name: ${{ matrix.name }}
6
+ runs-on: ${{ matrix.os }}
7
+ timeout-minutes: 30
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ include:
12
+ - name: 'check'
13
+ python: '3.11'
14
+ toxpython: 'python3.11'
15
+ tox_env: 'check'
16
+ os: 'ubuntu-latest'
17
+ - name: 'docs'
18
+ python: '3.11'
19
+ toxpython: 'python3.11'
20
+ tox_env: 'docs'
21
+ os: 'ubuntu-latest'
22
+ - name: 'py310-cover (ubuntu)'
23
+ python: '3.10'
24
+ toxpython: 'python3.10'
25
+ python_arch: 'x64'
26
+ tox_env: 'py310-cover'
27
+ os: 'ubuntu-latest'
28
+ - name: 'py311-cover (ubuntu)'
29
+ python: '3.11'
30
+ toxpython: 'python3.11'
31
+ python_arch: 'x64'
32
+ tox_env: 'py311-cover'
33
+ os: 'ubuntu-latest'
34
+ - name: 'py312-cover (ubuntu)'
35
+ python: '3.12'
36
+ toxpython: 'python3.12'
37
+ python_arch: 'x64'
38
+ tox_env: 'py312-cover'
39
+ os: 'ubuntu-latest'
40
+ - name: 'py312-cover (macos)'
41
+ python: '3.12'
42
+ toxpython: 'python3.12'
43
+ python_arch: 'x64'
44
+ tox_env: 'py312-cover'
45
+ os: 'macos-latest'
46
+ steps:
47
+ - uses: actions/checkout@v4
48
+ with:
49
+ fetch-depth: 0
50
+ - uses: actions/setup-python@v5
51
+ with:
52
+ python-version: ${{ matrix.python }}
53
+ architecture: ${{ matrix.python_arch }}
54
+ - name: install dependencies
55
+ run: |
56
+ python -mpip install --progress-bar=off -r ci/requirements.txt
57
+ virtualenv --version
58
+ pip --version
59
+ tox --version
60
+ pip list --format=freeze
61
+ - name: test
62
+ env:
63
+ TOXPYTHON: '${{ matrix.toxpython }}'
64
+ run: >
65
+ tox -e ${{ matrix.tox_env }} -v
66
+ finish:
67
+ needs: test
68
+ if: ${{ always() }}
69
+ runs-on: ubuntu-latest
70
+ steps:
71
+ - uses: actions/checkout@v4
72
+ with:
73
+ fetch-depth: 0
74
+ - uses: actions/setup-python@v5
75
+ with:
76
+ python-version: 3.11
77
+ architecture: x64
78
+ - name: install dependencies
79
+ run: |
80
+ python -mpip install --progress-bar=off -r ci/requirements.txt
81
+ virtualenv --version
82
+ pip --version
83
+ tox --version
84
+ pip list --format=freeze
85
+ - name: test
86
+ env:
87
+ TOXPYTHON: 'python311'
88
+ PYTEST_ADDOPTS: '--cov-append'
89
+ run: >
90
+ PYTEST_ADDOPTS=--cov-append tox -e py310-cover -v
91
+ - uses: codecov/codecov-action@v4
92
+ with:
93
+ token: ${{ secrets.CODECOV_TOKEN }}
94
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
95
+ verbose: true
96
+ env:
97
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
@@ -0,0 +1,78 @@
1
+ *.py[cod]
2
+ __pycache__
3
+
4
+ # Temp files
5
+ .*.sw[po]
6
+ *~
7
+ *.bak
8
+ .DS_Store
9
+
10
+ # C extensions
11
+ *.so
12
+
13
+ # Build and package files
14
+ *.egg
15
+ *.egg-info
16
+ .bootstrap
17
+ .build
18
+ .cache
19
+ .eggs
20
+ .env
21
+ .installed.cfg
22
+ .ve
23
+ bin
24
+ build
25
+ develop-eggs
26
+ dist
27
+ eggs
28
+ lib
29
+ lib64
30
+ parts
31
+ pip-wheel-metadata/
32
+ pyvenv*/
33
+ sdist
34
+ var
35
+ venv*/
36
+ wheelhouse
37
+ .venv/
38
+
39
+ # Installer logs
40
+ pip-log.txt
41
+
42
+ # Unit test / coverage reports
43
+ .benchmarks
44
+ .coverage
45
+ .coverage.*
46
+ .pytest
47
+ .pytest_cache/
48
+ .tox
49
+ coverage.xml
50
+ htmlcov
51
+ nosetests.xml
52
+
53
+ # Translations
54
+ *.mo
55
+
56
+ # Buildout
57
+ .mr.developer.cfg
58
+
59
+ # IDE project files
60
+ *.iml
61
+ *.komodoproject
62
+ .idea
63
+ .project
64
+ .pydevproject
65
+ .vscode
66
+
67
+ # Complexity
68
+ output/*.html
69
+ output/*/index.html
70
+
71
+ # Sphinx
72
+ docs/_build
73
+
74
+ # Mypy Cache
75
+ .mypy_cache/
76
+
77
+ # Generated by setuptools-scm
78
+ src/*/_version.py
@@ -6,12 +6,12 @@ exclude: '^(\.tox|ci/templates|\.bumpversion\.cfg)(/|$)'
6
6
  # Note the order is intentional to avoid multiple passes of the hooks
7
7
  repos:
8
8
  - repo: https://github.com/astral-sh/ruff-pre-commit
9
- rev: v0.3.5
9
+ rev: v0.3.7
10
10
  hooks:
11
11
  - id: ruff
12
12
  args: [--fix, --exit-non-zero-on-fix, --show-fixes]
13
13
  - repo: https://github.com/psf/black
14
- rev: 24.3.0
14
+ rev: 24.4.0
15
15
  hooks:
16
16
  - id: black
17
17
  - repo: https://github.com/pre-commit/pre-commit-hooks
@@ -0,0 +1,13 @@
1
+
2
+ Changelog
3
+ =========
4
+
5
+ 0.1.1 (2024-04-16)
6
+ ------------------
7
+
8
+ * Delete python3.8 python3.9 pypy.
9
+
10
+ 0.1.0 (2024-04-14)
11
+ ------------------
12
+
13
+ * First release on PyPI.
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024, Eastmoney Trade Library
3
+ Copyright (c) 2024-2025, Eastmoney Trade Library
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.1.0
4
- Summary: An example package. Generated with cookiecutter-pylibrary.
3
+ Version: 0.1.2.dev2
4
+ Summary: 东方财富交易系统
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Eastmoney Trade Library
7
7
  Author-email: riiyzhou@gmail.com
@@ -9,22 +9,20 @@ License: MIT
9
9
  Project-URL: Documentation, https://emtl.readthedocs.io/
10
10
  Project-URL: Changelog, https://emtl.readthedocs.io/en/latest/changelog.html
11
11
  Project-URL: Issue Tracker, https://github.com/riiy/emtl/issues
12
- Classifier: Development Status :: 5 - Production/Stable
12
+ Keywords: trade,东方财富,股票,交易
13
+ Platform: UNKNOWN
14
+ Classifier: Development Status :: 2 - Pre-Alpha
13
15
  Classifier: Intended Audience :: Developers
14
16
  Classifier: License :: OSI Approved :: MIT License
15
17
  Classifier: Operating System :: Unix
16
18
  Classifier: Operating System :: POSIX
17
- Classifier: Operating System :: Microsoft :: Windows
18
19
  Classifier: Programming Language :: Python
19
20
  Classifier: Programming Language :: Python :: 3
20
21
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
- Classifier: Programming Language :: Python :: 3.9
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
26
25
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
- Classifier: Programming Language :: Python :: Implementation :: PyPy
28
26
  Classifier: Topic :: Utilities
29
27
  Requires-Python: >=3.8
30
28
  License-File: LICENSE
@@ -36,7 +34,7 @@ Overview
36
34
 
37
35
 
38
36
 
39
- An example package. Generated with cookiecutter-pylibrary.
37
+ 东方财富交易系统
40
38
 
41
39
  * Free software: MIT license
42
40
 
@@ -49,7 +47,7 @@ Installation
49
47
 
50
48
  You can also install the in-development version with::
51
49
 
52
- pip install https://github.com/riiy/emtl/archive/main.zip
50
+ pip install https://github.com/riiy/emtl/archive/master.zip
53
51
 
54
52
 
55
53
  Documentation
@@ -87,7 +85,14 @@ Note, to combine the coverage data from all the tox environments run:
87
85
  Changelog
88
86
  =========
89
87
 
90
- 0.1.0 (2024-04-11)
88
+ 0.1.1 (2024-04-16)
89
+ ------------------
90
+
91
+ * Delete python3.8 python3.9 pypy.
92
+
93
+ 0.1.0 (2024-04-14)
91
94
  ------------------
92
95
 
93
96
  * First release on PyPI.
97
+
98
+
@@ -21,7 +21,7 @@ Overview
21
21
  :alt: GitHub Actions Build Status
22
22
  :target: https://github.com/riiy/emtl/actions
23
23
 
24
- .. |codecov| image:: https://codecov.io/gh/riiy/emtl/branch/main/graphs/badge.svg?branch=main
24
+ .. |codecov| image:: https://codecov.io/gh/riiy/emtl/branch/master/graphs/badge.svg?branch=master
25
25
  :alt: Coverage Status
26
26
  :target: https://app.codecov.io/github/riiy/emtl
27
27
 
@@ -41,15 +41,15 @@ Overview
41
41
  :alt: Supported implementations
42
42
  :target: https://pypi.org/project/emtl
43
43
 
44
- .. |commits-since| image:: https://img.shields.io/github/commits-since/riiy/emtl/v0.1.0.svg
44
+ .. |commits-since| image:: https://img.shields.io/github/commits-since/riiy/emtl/v0.1.1.svg
45
45
  :alt: Commits since latest release
46
- :target: https://github.com/riiy/emtl/compare/v0.1.0...main
46
+ :target: https://github.com/riiy/emtl/compare/v0.1.1...master
47
47
 
48
48
 
49
49
 
50
50
  .. end-badges
51
51
 
52
- An example package. Generated with cookiecutter-pylibrary.
52
+ 东方财富交易系统
53
53
 
54
54
  * Free software: MIT license
55
55
 
@@ -62,7 +62,7 @@ Installation
62
62
 
63
63
  You can also install the in-development version with::
64
64
 
65
- pip install https://github.com/riiy/emtl/archive/main.zip
65
+ pip install https://github.com/riiy/emtl/archive/master.zip
66
66
 
67
67
 
68
68
  Documentation
@@ -1,5 +1,5 @@
1
1
  name: build
2
- on: [push, pull_request]
2
+ on: [push, pull_request, workflow_dispatch]
3
3
  jobs:
4
4
  test:
5
5
  name: {{ '${{ matrix.name }}' }}
@@ -32,7 +32,6 @@ jobs:
32
32
  {% endif %}
33
33
  {% for os, python_arch in [
34
34
  ['ubuntu', 'x64'],
35
- ['windows', 'x64'],
36
35
  ['macos', 'x64'],
37
36
  ] %}
38
37
  - name: '{{ env }} ({{ os }})'
@@ -63,3 +62,11 @@ jobs:
63
62
  TOXPYTHON: '{{ '${{ matrix.toxpython }}' }}'
64
63
  run: >
65
64
  tox -e {{ '${{ matrix.tox_env }}' }} -v
65
+ finish:
66
+ needs: test
67
+ if: {{ '${{ always() }}' }}
68
+ runs-on: ubuntu-latest
69
+ steps:
70
+ - uses: codecov/codecov-action@v3
71
+ with:
72
+ CODECOV_TOKEN: {% raw %}${{ secrets.CODECOV_TOKEN }}{% endraw %}
@@ -12,18 +12,27 @@ extensions = [
12
12
  source_suffix = ".rst"
13
13
  master_doc = "index"
14
14
  project = "emtl"
15
- year = "2024"
15
+ year = "2024-2025"
16
16
  author = "Eastmoney Trade Library"
17
17
  copyright = f"{year}, {author}"
18
- version = release = "0.1.0"
18
+ try:
19
+ from pkg_resources import get_distribution
20
+
21
+ version = release = get_distribution("emtl").version
22
+ except Exception:
23
+ import traceback
24
+
25
+ traceback.print_exc()
26
+ version = release = "0.1.1"
19
27
 
20
28
  pygments_style = "trac"
21
29
  templates_path = ["."]
22
30
  extlinks = {
23
- "issue": ("https://github.com/riiy/emtl/issues/%s", "#"),
24
- "pr": ("https://github.com/riiy/emtl/pull/%s", "PR #"),
31
+ "issue": ("https://github.com/riiy/emtl/issues/%s", "#%s"),
32
+ "pr": ("https://github.com/riiy/emtl/pull/%s", "PR #%s"),
25
33
  }
26
34
 
35
+ html_theme = "furo"
27
36
  html_theme_options = {
28
37
  "githuburl": "https://github.com/riiy/emtl/",
29
38
  }
@@ -31,9 +40,6 @@ html_theme_options = {
31
40
  html_use_smartypants = True
32
41
  html_last_updated_fmt = "%b %d, %Y"
33
42
  html_split_index = False
34
- html_sidebars = {
35
- "**": ["searchbox.html", "globaltoc.html", "sourcelink.html"],
36
- }
37
43
  html_short_title = f"{project}-{version}"
38
44
 
39
45
  napoleon_use_ivar = True
@@ -1,6 +1,7 @@
1
1
  [build-system]
2
2
  requires = [
3
3
  "setuptools>=30.3.0",
4
+ "setuptools_scm>=3.3.1",
4
5
  ]
5
6
 
6
7
  [tool.ruff]
@@ -4,6 +4,11 @@
4
4
  # so if you add a pytest config section elsewhere,
5
5
  # you will need to delete this section from setup.cfg.
6
6
  norecursedirs =
7
+ .git
8
+ .tox
9
+ .env
10
+ dist
11
+ build
7
12
  migrations
8
13
 
9
14
  python_files =
@@ -13,6 +18,10 @@ python_files =
13
18
  addopts =
14
19
  -ra
15
20
  --strict-markers
21
+ --ignore=docs/conf.py
22
+ --ignore=setup.py
23
+ --ignore=ci
24
+ --ignore=.eggs
16
25
  --doctest-modules
17
26
  --doctest-glob=\*.rst
18
27
  --tb=short
@@ -13,9 +13,13 @@ def read(*names, **kwargs):
13
13
 
14
14
  setup(
15
15
  name="emtl",
16
- version="0.1.0",
16
+ use_scm_version={
17
+ "local_scheme": "dirty-tag",
18
+ "write_to": "src/emtl/_version.py",
19
+ "fallback_version": "0.1.1",
20
+ },
17
21
  license="MIT",
18
- description="An example package. Generated with cookiecutter-pylibrary.",
22
+ description="东方财富交易系统",
19
23
  long_description="{}\n{}".format(
20
24
  re.compile("^.. start-badges.*^.. end-badges", re.M | re.S).sub("", read("README.rst")),
21
25
  re.sub(":[a-z]+:`~?(.*?)`", r"``\1``", read("CHANGELOG.rst")),
@@ -30,22 +34,22 @@ setup(
30
34
  zip_safe=False,
31
35
  classifiers=[
32
36
  # complete classifier list: http://pypi.python.org/pypi?%3Aaction=list_classifiers
33
- "Development Status :: 5 - Production/Stable",
37
+ "Development Status :: 2 - Pre-Alpha",
34
38
  "Intended Audience :: Developers",
35
39
  "License :: OSI Approved :: MIT License",
36
40
  "Operating System :: Unix",
37
41
  "Operating System :: POSIX",
38
- "Operating System :: Microsoft :: Windows",
42
+ # "Operating System :: Microsoft :: Windows",
39
43
  "Programming Language :: Python",
40
44
  "Programming Language :: Python :: 3",
41
45
  "Programming Language :: Python :: 3 :: Only",
42
- "Programming Language :: Python :: 3.8",
43
- "Programming Language :: Python :: 3.9",
46
+ # "Programming Language :: Python :: 3.8",
47
+ # "Programming Language :: Python :: 3.9",
44
48
  "Programming Language :: Python :: 3.10",
45
49
  "Programming Language :: Python :: 3.11",
46
50
  "Programming Language :: Python :: 3.12",
47
51
  "Programming Language :: Python :: Implementation :: CPython",
48
- "Programming Language :: Python :: Implementation :: PyPy",
52
+ # "Programming Language :: Python :: Implementation :: PyPy",
49
53
  # uncomment if you test on these interpreters:
50
54
  # "Programming Language :: Python :: Implementation :: IronPython",
51
55
  # "Programming Language :: Python :: Implementation :: Jython",
@@ -58,7 +62,10 @@ setup(
58
62
  "Issue Tracker": "https://github.com/riiy/emtl/issues",
59
63
  },
60
64
  keywords=[
61
- # eg: "keyword1", "keyword2", "keyword3",
65
+ "trade",
66
+ "东方财富",
67
+ "股票",
68
+ "交易",
62
69
  ],
63
70
  python_requires=">=3.8",
64
71
  install_requires=[
@@ -69,6 +76,9 @@ setup(
69
76
  # "rst": ["docutils>=0.11"],
70
77
  # ":python_version=='3.8'": ["backports.zoneinfo"],
71
78
  },
79
+ setup_requires=[
80
+ "setuptools_scm>=3.3.1",
81
+ ],
72
82
  entry_points={
73
83
  "console_scripts": [
74
84
  "emt = emtl.cli:run",
@@ -0,0 +1,9 @@
1
+ __version__ = "0.1.1"
2
+
3
+ from .core import emt
4
+ from .core import login
5
+
6
+ __all__ = [
7
+ "emt",
8
+ "login",
9
+ ]
@@ -0,0 +1,16 @@
1
+ # file generated by setuptools_scm
2
+ # don't change, don't track in version control
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
5
+ from typing import Tuple, Union
6
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
7
+ else:
8
+ VERSION_TUPLE = object
9
+
10
+ version: str
11
+ __version__: str
12
+ __version_tuple__: VERSION_TUPLE
13
+ version_tuple: VERSION_TUPLE
14
+
15
+ __version__ = version = '0.1.2.dev2'
16
+ __version_tuple__ = version_tuple = (0, 1, 2, 'dev2')
@@ -19,16 +19,12 @@ import argparse
19
19
 
20
20
  from .core import emt
21
21
 
22
- parser = argparse.ArgumentParser(description="Command description.")
23
- parser.add_argument(
24
- "names",
25
- metavar="NAME",
26
- nargs=argparse.ZERO_OR_MORE,
27
- help="A name of something.",
28
- )
22
+ parser = argparse.ArgumentParser(prog="emt", description="东方财富交易系统", epilog="东方财富交易系统")
23
+ parser.add_argument("-u", "--user", required=True)
24
+ parser.add_argument("-p", "--password", required=True)
29
25
 
30
26
 
31
27
  def run(args=None):
32
28
  args = parser.parse_args(args=args)
33
- print(emt(args.names))
29
+ print(emt(args.user, args.password))
34
30
  parser.exit(0)
@@ -0,0 +1,8 @@
1
+ def emt(user, password):
2
+ return user, password
3
+
4
+
5
+ def login(user: str, password: str) -> str:
6
+ """Login."""
7
+ valide_key = user + password
8
+ return valide_key
@@ -0,0 +1,5 @@
1
+ import subprocess
2
+
3
+
4
+ def test_main():
5
+ assert subprocess.check_output(["emt", "-u=foo", "-p=bar"], text=True) == "('foo', 'bar')\n"
@@ -0,0 +1,14 @@
1
+ from .. import emt
2
+ from .. import login
3
+
4
+
5
+ def test_emt():
6
+ assert emt("user", "pass") == ("user", "pass")
7
+
8
+
9
+ def test_emt_empty():
10
+ assert emt("", "") == ("", "")
11
+
12
+
13
+ def test_login():
14
+ assert login("user", "pass") == "userpass"
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: emtl
3
- Version: 0.1.0
4
- Summary: An example package. Generated with cookiecutter-pylibrary.
3
+ Version: 0.1.2.dev2
4
+ Summary: 东方财富交易系统
5
5
  Home-page: https://github.com/riiy/emtl
6
6
  Author: Eastmoney Trade Library
7
7
  Author-email: riiyzhou@gmail.com
@@ -9,22 +9,20 @@ License: MIT
9
9
  Project-URL: Documentation, https://emtl.readthedocs.io/
10
10
  Project-URL: Changelog, https://emtl.readthedocs.io/en/latest/changelog.html
11
11
  Project-URL: Issue Tracker, https://github.com/riiy/emtl/issues
12
- Classifier: Development Status :: 5 - Production/Stable
12
+ Keywords: trade,东方财富,股票,交易
13
+ Platform: UNKNOWN
14
+ Classifier: Development Status :: 2 - Pre-Alpha
13
15
  Classifier: Intended Audience :: Developers
14
16
  Classifier: License :: OSI Approved :: MIT License
15
17
  Classifier: Operating System :: Unix
16
18
  Classifier: Operating System :: POSIX
17
- Classifier: Operating System :: Microsoft :: Windows
18
19
  Classifier: Programming Language :: Python
19
20
  Classifier: Programming Language :: Python :: 3
20
21
  Classifier: Programming Language :: Python :: 3 :: Only
21
- Classifier: Programming Language :: Python :: 3.8
22
- Classifier: Programming Language :: Python :: 3.9
23
22
  Classifier: Programming Language :: Python :: 3.10
24
23
  Classifier: Programming Language :: Python :: 3.11
25
24
  Classifier: Programming Language :: Python :: 3.12
26
25
  Classifier: Programming Language :: Python :: Implementation :: CPython
27
- Classifier: Programming Language :: Python :: Implementation :: PyPy
28
26
  Classifier: Topic :: Utilities
29
27
  Requires-Python: >=3.8
30
28
  License-File: LICENSE
@@ -36,7 +34,7 @@ Overview
36
34
 
37
35
 
38
36
 
39
- An example package. Generated with cookiecutter-pylibrary.
37
+ 东方财富交易系统
40
38
 
41
39
  * Free software: MIT license
42
40
 
@@ -49,7 +47,7 @@ Installation
49
47
 
50
48
  You can also install the in-development version with::
51
49
 
52
- pip install https://github.com/riiy/emtl/archive/main.zip
50
+ pip install https://github.com/riiy/emtl/archive/master.zip
53
51
 
54
52
 
55
53
  Documentation
@@ -87,7 +85,14 @@ Note, to combine the coverage data from all the tox environments run:
87
85
  Changelog
88
86
  =========
89
87
 
90
- 0.1.0 (2024-04-11)
88
+ 0.1.1 (2024-04-16)
89
+ ------------------
90
+
91
+ * Delete python3.8 python3.9 pypy.
92
+
93
+ 0.1.0 (2024-04-14)
91
94
  ------------------
92
95
 
93
96
  * First release on PyPI.
97
+
98
+
@@ -2,13 +2,13 @@
2
2
  .cookiecutterrc
3
3
  .coveragerc
4
4
  .editorconfig
5
+ .gitignore
5
6
  .pre-commit-config.yaml
6
7
  .readthedocs.yml
7
8
  AUTHORS.rst
8
9
  CHANGELOG.rst
9
10
  CONTRIBUTING.rst
10
11
  LICENSE
11
- MANIFEST.in
12
12
  README.rst
13
13
  pyproject.toml
14
14
  pytest.ini
@@ -32,6 +32,7 @@ docs/reference/emtl.rst
32
32
  docs/reference/index.rst
33
33
  src/emtl/__init__.py
34
34
  src/emtl/__main__.py
35
+ src/emtl/_version.py
35
36
  src/emtl/cli.py
36
37
  src/emtl/core.py
37
38
  src/emtl.egg-info/PKG-INFO
@@ -1,2 +1,3 @@
1
1
  [console_scripts]
2
2
  emt = emtl.cli:run
3
+
@@ -14,17 +14,12 @@ envlist =
14
14
  clean,
15
15
  check,
16
16
  docs,
17
- {py38,py39,py310,py311,py312,pypy38,pypy39,pypy310},
17
+ {py310,py311,py312}-{cover,nocov},
18
18
  report
19
19
  ignore_basepython_conflict = true
20
20
 
21
21
  [testenv]
22
22
  basepython =
23
- pypy38: {env:TOXPYTHON:pypy3.8}
24
- pypy39: {env:TOXPYTHON:pypy3.9}
25
- pypy310: {env:TOXPYTHON:pypy3.10}
26
- py38: {env:TOXPYTHON:python3.8}
27
- py39: {env:TOXPYTHON:python3.9}
28
23
  py310: {env:TOXPYTHON:python3.10}
29
24
  py311: {env:TOXPYTHON:python3.11}
30
25
  py312: {env:TOXPYTHON:python3.12}
@@ -34,29 +29,33 @@ setenv =
34
29
  PYTHONUNBUFFERED=yes
35
30
  passenv =
36
31
  *
37
- usedevelop = false
32
+ usedevelop =
33
+ cover: true
34
+ nocov: false
38
35
  deps =
39
36
  pytest
40
- pytest-cov
37
+ cover: pytest-cov
41
38
  commands =
42
- {posargs:pytest --cov --cov-report=term-missing --cov-report=xml -vv }
39
+ nocov: {posargs:pytest -vv --ignore=src}
40
+ cover: {posargs:pytest --cov --cov-report=term-missing --cov-report=xml -vv}
43
41
 
44
42
  [testenv:check]
45
43
  deps =
46
44
  docutils
47
- check-manifest
48
45
  pre-commit
49
46
  readme-renderer
50
47
  pygments
51
48
  isort
49
+ setuptools-scm
52
50
  skip_install = true
53
51
  commands =
54
52
  python setup.py check --strict --metadata --restructuredtext
55
- check-manifest .
56
53
  pre-commit run --all-files --show-diff-on-failure
57
54
 
58
55
  [testenv:docs]
59
56
  usedevelop = true
57
+ install_command =
58
+ python -m pip install --no-use-pep517 {opts} {packages}
60
59
  deps =
61
60
  -r{toxinidir}/docs/requirements.txt
62
61
  commands =
@@ -1,185 +0,0 @@
1
- name: build
2
- on: [push, pull_request]
3
- jobs:
4
- test:
5
- name: ${{ matrix.name }}
6
- runs-on: ${{ matrix.os }}
7
- timeout-minutes: 30
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- include:
12
- - name: 'check'
13
- python: '3.11'
14
- toxpython: 'python3.11'
15
- tox_env: 'check'
16
- os: 'ubuntu-latest'
17
- - name: 'docs'
18
- python: '3.11'
19
- toxpython: 'python3.11'
20
- tox_env: 'docs'
21
- os: 'ubuntu-latest'
22
- - name: 'py38 (ubuntu)'
23
- python: '3.8'
24
- toxpython: 'python3.8'
25
- python_arch: 'x64'
26
- tox_env: 'py38'
27
- os: 'ubuntu-latest'
28
- - name: 'py38 (windows)'
29
- python: '3.8'
30
- toxpython: 'python3.8'
31
- python_arch: 'x64'
32
- tox_env: 'py38'
33
- os: 'windows-latest'
34
- - name: 'py38 (macos)'
35
- python: '3.8'
36
- toxpython: 'python3.8'
37
- python_arch: 'x64'
38
- tox_env: 'py38'
39
- os: 'macos-latest'
40
- - name: 'py39 (ubuntu)'
41
- python: '3.9'
42
- toxpython: 'python3.9'
43
- python_arch: 'x64'
44
- tox_env: 'py39'
45
- os: 'ubuntu-latest'
46
- - name: 'py39 (windows)'
47
- python: '3.9'
48
- toxpython: 'python3.9'
49
- python_arch: 'x64'
50
- tox_env: 'py39'
51
- os: 'windows-latest'
52
- - name: 'py39 (macos)'
53
- python: '3.9'
54
- toxpython: 'python3.9'
55
- python_arch: 'x64'
56
- tox_env: 'py39'
57
- os: 'macos-latest'
58
- - name: 'py310 (ubuntu)'
59
- python: '3.10'
60
- toxpython: 'python3.10'
61
- python_arch: 'x64'
62
- tox_env: 'py310'
63
- os: 'ubuntu-latest'
64
- - name: 'py310 (windows)'
65
- python: '3.10'
66
- toxpython: 'python3.10'
67
- python_arch: 'x64'
68
- tox_env: 'py310'
69
- os: 'windows-latest'
70
- - name: 'py310 (macos)'
71
- python: '3.10'
72
- toxpython: 'python3.10'
73
- python_arch: 'x64'
74
- tox_env: 'py310'
75
- os: 'macos-latest'
76
- - name: 'py311 (ubuntu)'
77
- python: '3.11'
78
- toxpython: 'python3.11'
79
- python_arch: 'x64'
80
- tox_env: 'py311'
81
- os: 'ubuntu-latest'
82
- - name: 'py311 (windows)'
83
- python: '3.11'
84
- toxpython: 'python3.11'
85
- python_arch: 'x64'
86
- tox_env: 'py311'
87
- os: 'windows-latest'
88
- - name: 'py311 (macos)'
89
- python: '3.11'
90
- toxpython: 'python3.11'
91
- python_arch: 'x64'
92
- tox_env: 'py311'
93
- os: 'macos-latest'
94
- - name: 'py312 (ubuntu)'
95
- python: '3.12'
96
- toxpython: 'python3.12'
97
- python_arch: 'x64'
98
- tox_env: 'py312'
99
- os: 'ubuntu-latest'
100
- - name: 'py312 (windows)'
101
- python: '3.12'
102
- toxpython: 'python3.12'
103
- python_arch: 'x64'
104
- tox_env: 'py312'
105
- os: 'windows-latest'
106
- - name: 'py312 (macos)'
107
- python: '3.12'
108
- toxpython: 'python3.12'
109
- python_arch: 'x64'
110
- tox_env: 'py312'
111
- os: 'macos-latest'
112
- - name: 'pypy38 (ubuntu)'
113
- python: 'pypy-3.8'
114
- toxpython: 'pypy3.8'
115
- python_arch: 'x64'
116
- tox_env: 'pypy38'
117
- os: 'ubuntu-latest'
118
- - name: 'pypy38 (windows)'
119
- python: 'pypy-3.8'
120
- toxpython: 'pypy3.8'
121
- python_arch: 'x64'
122
- tox_env: 'pypy38'
123
- os: 'windows-latest'
124
- - name: 'pypy38 (macos)'
125
- python: 'pypy-3.8'
126
- toxpython: 'pypy3.8'
127
- python_arch: 'x64'
128
- tox_env: 'pypy38'
129
- os: 'macos-latest'
130
- - name: 'pypy39 (ubuntu)'
131
- python: 'pypy-3.9'
132
- toxpython: 'pypy3.9'
133
- python_arch: 'x64'
134
- tox_env: 'pypy39'
135
- os: 'ubuntu-latest'
136
- - name: 'pypy39 (windows)'
137
- python: 'pypy-3.9'
138
- toxpython: 'pypy3.9'
139
- python_arch: 'x64'
140
- tox_env: 'pypy39'
141
- os: 'windows-latest'
142
- - name: 'pypy39 (macos)'
143
- python: 'pypy-3.9'
144
- toxpython: 'pypy3.9'
145
- python_arch: 'x64'
146
- tox_env: 'pypy39'
147
- os: 'macos-latest'
148
- - name: 'pypy310 (ubuntu)'
149
- python: 'pypy-3.10'
150
- toxpython: 'pypy3.10'
151
- python_arch: 'x64'
152
- tox_env: 'pypy310'
153
- os: 'ubuntu-latest'
154
- - name: 'pypy310 (windows)'
155
- python: 'pypy-3.10'
156
- toxpython: 'pypy3.10'
157
- python_arch: 'x64'
158
- tox_env: 'pypy310'
159
- os: 'windows-latest'
160
- - name: 'pypy310 (macos)'
161
- python: 'pypy-3.10'
162
- toxpython: 'pypy3.10'
163
- python_arch: 'x64'
164
- tox_env: 'pypy310'
165
- os: 'macos-latest'
166
- steps:
167
- - uses: actions/checkout@v4
168
- with:
169
- fetch-depth: 0
170
- - uses: actions/setup-python@v5
171
- with:
172
- python-version: ${{ matrix.python }}
173
- architecture: ${{ matrix.python_arch }}
174
- - name: install dependencies
175
- run: |
176
- python -mpip install --progress-bar=off -r ci/requirements.txt
177
- virtualenv --version
178
- pip --version
179
- tox --version
180
- pip list --format=freeze
181
- - name: test
182
- env:
183
- TOXPYTHON: '${{ matrix.toxpython }}'
184
- run: >
185
- tox -e ${{ matrix.tox_env }} -v
emtl-0.1.0/CHANGELOG.rst DELETED
@@ -1,8 +0,0 @@
1
-
2
- Changelog
3
- =========
4
-
5
- 0.1.0 (2024-04-11)
6
- ------------------
7
-
8
- * First release on PyPI.
emtl-0.1.0/MANIFEST.in DELETED
@@ -1,22 +0,0 @@
1
- graft docs
2
- graft src
3
- graft ci
4
- graft tests
5
-
6
- include .bumpversion.cfg
7
- include .cookiecutterrc
8
- include .coveragerc
9
- include .editorconfig
10
- include .github/workflows/github-actions.yml
11
- include .pre-commit-config.yaml
12
- include .readthedocs.yml
13
- include pytest.ini
14
- include tox.ini
15
-
16
- include AUTHORS.rst
17
- include CHANGELOG.rst
18
- include CONTRIBUTING.rst
19
- include LICENSE
20
- include README.rst
21
-
22
- global-exclude *.py[cod] __pycache__/* *.so *.dylib
@@ -1,7 +0,0 @@
1
- __version__ = "0.1.0"
2
-
3
- from .core import emt
4
-
5
- __all__ = [
6
- "emt",
7
- ]
@@ -1,2 +0,0 @@
1
- def emt(args):
2
- return max(args, key=len)
@@ -1,5 +0,0 @@
1
- import subprocess
2
-
3
-
4
- def test_main():
5
- assert subprocess.check_output(["emt", "foo", "foobar"], text=True) == "foobar\n"
@@ -1,5 +0,0 @@
1
- from .. import emt
2
-
3
-
4
- def test_emt():
5
- assert emt([b"a", b"bc", b"abc"]) == b"abc"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes