Skip to content

Commit 8db5ef0

Browse files
diewdurbin
andauthored
External classifiers (#7582)
* Add dependency on trove-classifiers=1.0.0 * Remove a random comment * Update list classifiers HTML view * Update list classifiers API action * Update search filter for deprecated classifiers * New validators for classifiers and deprecated classifiers * Create new classifiers on upload * Clean up Classifier model * Remove classifier pages from admin UI * Update translations * Test that all trove_classifiers can be created * Test that private classifiers can't be created * Update w/ CalVer release * Updates from #7689 Co-authored-by: Ernest W. Durbin III <[email protected]>
1 parent 58d6829 commit 8db5ef0

File tree

22 files changed

+280
-565
lines changed

22 files changed

+280
-565
lines changed

requirements/main.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ sqlalchemy-citext
5353
stdlib-list
5454
structlog
5555
transaction
56+
trove-classifiers
5657
typeguard
5758
webauthn
5859
whitenoise

requirements/main.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,9 @@ transaction==3.0.0 \
569569
translationstring==1.3 \
570570
--hash=sha256:4ee44cfa58c52ade8910ea0ebc3d2d84bdcad9fa0422405b1801ec9b9a65b72d \
571571
--hash=sha256:e26c7bf383413234ed442e0980a2ebe192b95e3745288a8fd2805156d27515b4
572+
trove-classifiers==2020.4.1 \
573+
--hash=sha256:9e1dcd47920817eaeb4cc67004b3fee430f3fc692e926f6ab1e337035b7a590d \
574+
--hash=sha256:d8adb5d687ee15fe83c4c23404a8fbc0ff267ca997c6870419cc625fdea449e0
572575
typeguard==2.7.1 \
573576
--hash=sha256:1d3710251d3d3d6c64e0c49f45edec2e88ddc386a51e89c3ec0703efeb8b3b81 \
574577
--hash=sha256:2d545c71e9439c21bcd7c28f5f55b3606e6106f7031ab58375656a1aed483ef2

tests/common/db/classifiers.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13-
import factory
14-
import factory.fuzzy
15-
1613
from warehouse.classifiers.models import Classifier
1714

1815
from .base import WarehouseFactory
@@ -21,8 +18,3 @@
2118
class ClassifierFactory(WarehouseFactory):
2219
class Meta:
2320
model = Classifier
24-
25-
l2 = factory.fuzzy.FuzzyInteger(0)
26-
l3 = factory.fuzzy.FuzzyInteger(0)
27-
l4 = factory.fuzzy.FuzzyInteger(0)
28-
l5 = factory.fuzzy.FuzzyInteger(0)

tests/unit/admin/test_routes.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,6 @@ def test_includeme():
101101
domain=warehouse,
102102
),
103103
pretend.call("admin.journals.list", "/admin/journals/", domain=warehouse),
104-
pretend.call("admin.classifiers", "/admin/classifiers/", domain=warehouse),
105-
pretend.call(
106-
"admin.classifiers.add", "/admin/classifiers/add/", domain=warehouse
107-
),
108-
pretend.call(
109-
"admin.classifiers.deprecate",
110-
"/admin/classifiers/deprecate/",
111-
domain=warehouse,
112-
),
113104
pretend.call("admin.blacklist.list", "/admin/blacklist/", domain=warehouse),
114105
pretend.call("admin.blacklist.add", "/admin/blacklist/add/", domain=warehouse),
115106
pretend.call(

tests/unit/admin/views/test_classifiers.py

Lines changed: 0 additions & 134 deletions
This file was deleted.

0 commit comments

Comments
 (0)