nothead31 commited on
Commit
8572051
·
unverified ·
1 Parent(s): 3bdb2fb

fixed issue#70 (#72)

Browse files
Files changed (2) hide show
  1. docs/conf.py +3 -3
  2. setup.cfg +26 -19
docs/conf.py CHANGED
@@ -21,7 +21,7 @@ import os
21
  import sys
22
  sys.path.insert(0, os.path.abspath('..'))
23
 
24
- import deep_translator
25
 
26
  # -- General configuration ---------------------------------------------
27
 
@@ -57,9 +57,9 @@ author = "Nidhal Baccouri"
57
  # the built documents.
58
  #
59
  # The short X.Y version.
60
- version = deep_translator.__version__
61
  # The full version, including alpha/beta/rc tags.
62
- release = deep_translator.__version__
63
 
64
  # The language for content autogenerated by Sphinx. Refer to documentation
65
  # for a list of supported languages.
 
21
  import sys
22
  sys.path.insert(0, os.path.abspath('..'))
23
 
24
+ # import deep_translator
25
 
26
  # -- General configuration ---------------------------------------------
27
 
 
57
  # the built documents.
58
  #
59
  # The short X.Y version.
60
+ # version = deep_translator.__version__
61
  # The full version, including alpha/beta/rc tags.
62
+ # release = deep_translator.__version__
63
 
64
  # The language for content autogenerated by Sphinx. Refer to documentation
65
  # for a list of supported languages.
setup.cfg CHANGED
@@ -35,6 +35,11 @@ keywords = deep_translator, deepL, DeepL, translator, translation, automation,
35
  YANDEX, MyMemory translator, Linguee, QCRI, Language, Language detection,
36
  detect language, free translation, unlimited translation, translate for free
37
 
 
 
 
 
 
38
  # [options]
39
  # zip_safe = 0
40
  # setup_requires = pytest-runner
@@ -52,29 +57,31 @@ keywords = deep_translator, deepL, DeepL, translator, translation, automation,
52
  # [options.packages.find]
53
  # where = deep_translator
54
 
 
55
  # bumpversion config
56
- [bumpversion]
57
- current_version = 1.4.4
58
- commit = True
59
- tag = True
60
 
61
- [bumpversion:file:setup.py]
62
- search = version='{current_version}'
63
- replace = version='{new_version}'
64
 
65
- [bumpversion:file:deep_translator/__init__.py]
66
- search = __version__ = '{current_version}'
67
- replace = __version__ = '{new_version}'
68
 
69
- # [bdist_wheel]
70
- # universal = 1
 
71
 
72
- # [flake8]
73
- # exclude = docs
74
 
75
- # [aliases]
76
- # # Define setup.py command aliases here
77
- # test = pytest
78
 
79
- # [tool:pytest]
80
- # collect_ignore = [setup.py]
 
35
  YANDEX, MyMemory translator, Linguee, QCRI, Language, Language detection,
36
  detect language, free translation, unlimited translation, translate for free
37
 
38
+ [build_sphinx]
39
+ version = 1.4.4
40
+ release = 1.4.4
41
+
42
+ # TODO: These can be switched back on if the CI platform changes from Travis. Travis still requires setup.py to function properly.
43
  # [options]
44
  # zip_safe = 0
45
  # setup_requires = pytest-runner
 
57
  # [options.packages.find]
58
  # where = deep_translator
59
 
60
+ # TODO: This can be removed once Sphinx confirms it reads the version tags from here. The tags might be simplified by referencing metadata.version
61
  # bumpversion config
62
+ # [bumpversion]
63
+ # current_version = 1.4.4
64
+ # commit = True
65
+ # tag = True
66
 
67
+ # [bumpversion:file:setup.py]
68
+ # search = version='{current_version}'
69
+ # replace = version='{new_version}'
70
 
71
+ # [bumpversion:file:deep_translator/__init__.py]
72
+ # search = __version__ = '{current_version}'
73
+ # replace = __version__ = '{new_version}'
74
 
75
+ # TODO: These are all optional settings, turned on for now since they exist already.
76
+ [bdist_wheel]
77
+ universal = 1
78
 
79
+ [flake8]
80
+ exclude = docs
81
 
82
+ [aliases]
83
+ # Define setup.py command aliases here
84
+ test = pytest
85
 
86
+ [tool:pytest]
87
+ collect_ignore = [setup.py]