diff --git a/CHANGES.rst b/CHANGES.rst
index 7cb2095..4a64ccf 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,3 +1,8 @@
+v0.5.2
+======
+
+#7: Parent of a directory now actually returns the parent.
+
 v0.5.1
 ======
 
diff --git a/appveyor.yml b/appveyor.yml
index f35aa27..2b7808f 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -18,7 +18,7 @@ cache:
   - '%LOCALAPPDATA%\pip\Cache'
 
 test_script:
-  - "python -m pip install -U tox tox-venv virtualenv"
+  - "python -m pip install tox tox-venv"
   - "tox"
 
 version: '{build}'
diff --git a/tox.ini b/tox.ini
index 175afb2..02e18c9 100644
--- a/tox.ini
+++ b/tox.ini
@@ -24,7 +24,8 @@ commands =
 skip_install = True
 deps =
 	pep517>=0.5
-	twine>=1.13
+	# workaround for https://github.com/pypa/twine/issues/423
+	git+https://github.com/pypa/twine
 	path.py
 commands =
 	python -c "import path; path.Path('dist').rmtree_p()"
diff --git a/zipp.py b/zipp.py
index 918e688..8cdfdc0 100644
--- a/zipp.py
+++ b/zipp.py
@@ -159,7 +159,7 @@ class Path:
 
     @property
     def parent(self):
-        parent_at = posixpath.dirname(self.at)
+        parent_at = posixpath.dirname(self.at.rstrip('/'))
         if parent_at:
             parent_at += '/'
         return self._next(parent_at)

Attempting to get a parent of a dir results in the same object
In ae4be5a, I illustrate an issue I discovered where retrieving the parent of a directory results in the same object and not actually the parent.
diff --git a/test_zipp.py b/test_zipp.py
index da68fea..e084374 100644
--- a/test_zipp.py
+++ b/test_zipp.py
@@ -170,3 +170,14 @@ class TestEverything(unittest.TestCase):
             root = zipp.Path(zipfile_abcde)
             assert (root / 'a').parent.at == ''
             assert (root / 'a' / 'b').parent.at == 'a/'
+
+    def test_dir_parent(self):
+        for zipfile_abcde in self.zipfile_abcde():
+            root = zipp.Path(zipfile_abcde)
+            assert (root / 'b').parent.at == ''
+            assert (root / 'b/').parent.at == ''
+
+    def test_missing_dir_parent(self):
+        for zipfile_abcde in self.zipfile_abcde():
+            root = zipp.Path(zipfile_abcde)
+            assert (root / 'missing dir/').parent.at == ''

pip install -e .[testing,docs]
parse_log_pytest
pytest
pytest
3.7
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs @ file:///croot/attrs_1668696182826/work
Babel==2.14.0
build==1.1.1
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
contextlib2==21.6.0
distlib==0.3.9
docutils==0.19
filelock==3.12.2
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core
idna==3.10
imagesize==1.4.1
importlib-metadata==6.7.0
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
jaraco.context==4.3.0
jaraco.packaging==9.2.0
Jinja2==3.1.6
linecache2==1.0.0
MarkupSafe==2.1.5
packaging @ file:///croot/packaging_1671697413597/work
pathlib2==2.3.7.post1
platformdirs==4.0.0
pluggy @ file:///tmp/build/80754af9/pluggy_1648042572264/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
Pygments==2.17.2
pyproject_hooks==1.2.0
pytest==7.1.2
python-dateutil==2.9.0.post0
pytz==2025.2
requests==2.31.0
rst.linker==2.4.0
six==1.17.0
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
traceback2==1.4.0
typing_extensions==4.7.1
unittest2==1.1.0
urllib3==2.0.7
virtualenv==20.26.6
-e git+https://github.com/jaraco/zipp.git@4715556d5cad2cc106dd808eb5ce66fbada07434#egg=zipp

name: zipp
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=22.1.0=py37h06a4308_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - flit-core=3.6.0=pyhd3eb1b0_0
  - importlib_metadata=4.11.3=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=22.0=py37h06a4308_0
  - pip=22.3.1=py37h06a4308_0
  - pluggy=1.0.0=py37h06a4308_1
  - py=1.11.0=pyhd3eb1b0_0
  - pytest=7.1.2=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py37h06a4308_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - argparse==1.4.0
      - babel==2.14.0
      - build==1.1.1
      - charset-normalizer==3.4.1
      - contextlib2==21.6.0
      - distlib==0.3.9
      - docutils==0.19
      - filelock==3.12.2
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==6.7.0
      - jaraco-context==4.3.0
      - jaraco-packaging==9.2.0
      - jinja2==3.1.6
      - linecache2==1.0.0
      - markupsafe==2.1.5
      - pathlib2==2.3.7.post1
      - platformdirs==4.0.0
      - pygments==2.17.2
      - pyproject-hooks==1.2.0
      - python-dateutil==2.9.0.post0
      - pytz==2025.2
      - requests==2.31.0
      - rst-linker==2.4.0
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - traceback2==1.4.0
      - typing-extensions==4.7.1
      - unittest2==1.1.0
      - urllib3==2.0.7
      - virtualenv==20.26.6
      - zipp==0.5.2.dev3+g4715556
prefix: /opt/conda/envs/zipp

test_zipp.py::TestEverything::test_dir_parent test_zipp.py::TestEverything::test_missing_dir_parent
test_zipp.py::TestEverything::test_iterdir_istype test_zipp.py::TestEverything::test_joinpath test_zipp.py::TestEverything::test_open test_zipp.py::TestEverything::test_parent test_zipp.py::TestEverything::test_pathlike_construction test_zipp.py::TestEverything::test_read test_zipp.py::TestEverything::test_traverse_pathlike test_zipp.py::TestEverything::test_traverse_simplediv test_zipp.py::TestEverything::test_traverse_truediv
appveyor.yml zipp.py tox.ini CHANGES.rst
appveyor.yml zipp.py tox.ini CHANGES.rst