Jelajahi Sumber

Upload v0.1.0

luozhouyang 6 tahun lalu
induk
melakukan
1512c33b98
4 mengubah file dengan 14 tambahan dan 4 penghapusan
  1. 2 2
      setup.py
  2. 2 1
      strsim/__init__.py
  3. 1 1
      upload.sh
  4. 9 0
      upload_test.sh

+ 2 - 2
setup.py

@@ -4,8 +4,8 @@ with open("README.md", "r") as fh:
     long_description = fh.read()
 
 setuptools.setup(
-    name="strsim",
-    version="0.0.3",
+    name="strsimpy",
+    version="0.1.0",
     description="A library implementing different string similarity and distance measures",
     long_description=long_description,
     long_description_content_type="text/markdown",

+ 2 - 1
strsim/__init__.py

@@ -35,4 +35,5 @@ from .string_distance import StringDistance
 from .string_similarity import StringSimilarity
 from .weighted_levenshtein import WeightedLevenshtein
 
-__name__ = 'strsim'
+__name__ = 'strsimpy'
+__version__ = '0.1.0'

+ 1 - 1
upload.sh

@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 
-source venv/bin/activate
+conda activate strsim
 python3 setup.py sdist bdist_wheel
 twine upload dist/*
 

+ 9 - 0
upload_test.sh

@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+conda activate strsim
+python3 setup.py sdist bdist_wheel
+twine upload --repository-url https://test.pypi.org/legacy/ dist/*
+
+rm -rf build
+rm -rf dist
+rm -rf *.egg-info